this repo has no description
1name: Update Catalogs
2
3on:
4 push:
5 branches:
6 - l10n_main
7 workflow_dispatch:
8
9jobs:
10 update-catalogs:
11 if: github.repository == 'cheeaun/phanpy'
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v4
15 with:
16 ref: l10n_main
17 - uses: actions/setup-node@v4
18 with:
19 node-version: 20
20 - run: npm ci
21 - name: Update catalogs.json
22 run: |
23 node scripts/catalogs.js
24 if git diff --quiet src/data/catalogs.json; then
25 echo "No changes to catalogs.json"
26 else
27 echo "Changes to catalogs.json"
28 git config --global user.email "github-actions[bot]@users.noreply.github.com"
29 git config --global user.name "github-actions[bot]"
30 git add src/data/catalogs.json
31 git commit -m "Update catalogs.json"
32 git push origin HEAD:l10n_main || true
33 fi