Improvements #208
This file contains 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: Update locale lists | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**.xml' | |
concurrency: | |
group: "locale-list" | |
cancel-in-progress: true | |
jobs: | |
create: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Edit files | |
run: | | |
python3 .github/locales.py | |
- name: Commit to the repo | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "actions@github.com" | |
git add . | |
# "echo" returns true so the build succeeds, even if no changed files | |
git commit -m 'chore: update list of locales' || echo | |
git push |