Skip to content

Commit

Permalink
Update refresh-meta.yml
Browse files Browse the repository at this point in the history
Prevter committed Jan 1, 2025
1 parent c5235c6 commit f827ab8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/refresh-meta.yml
Original file line number Diff line number Diff line change
@@ -14,14 +14,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate metadata.json
run: |
echo "{\"timestamp\": $(date +%s), \"languages\": [$(ls translations/*.lang.json | sed 's/translations\///;s/.lang.json//;s/^/"/;s/$/"/' | paste -sd,)]}" > metadata.json
- name: Update metadata branch
run: |
git checkout -b metadata
if git show-ref --verify --quiet refs/remotes/origin/metadata; then
git checkout metadata
git pull origin metadata
else
git checkout --orphan metadata
git rm -rf .
fi
git add metadata.json
git config --global user.email "bot@eclipse.menu"
git config --global user.name "Eclipse Menu Bot"

0 comments on commit f827ab8

Please sign in to comment.