deploy clans-of-caledonia 1.0.6 #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Game Languages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'games-index.json' | |
| jobs: | |
| sync-languages: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Sync languages from deployed game metadata | |
| run: | | |
| node .github/scripts/sync-languages.js | |
| - name: Check for changes | |
| id: changes | |
| run: | | |
| if git diff --quiet games-index.json; then | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Commit and push | |
| if: steps.changes.outputs.changed == 'true' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add games-index.json | |
| git commit -m "update languages in games-index.json" | |
| git push |