-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 981 Bytes
/
Copy pathsync-languages.yml
File metadata and controls
40 lines (33 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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