Skip to content

deploy roll-for-the-galaxy 1.0.14 #34

deploy roll-for-the-galaxy 1.0.14

deploy roll-for-the-galaxy 1.0.14 #34

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