cloudstream/.github/workflows/update_locales.yml

39 lines
998 B
YAML
Raw Normal View History

2022-12-25 18:49:59 +00:00
name: Update locale lists
on:
push:
paths:
- '**.xml'
2022-12-25 18:52:30 +00:00
branches:
- master
2022-12-25 18:49:59 +00:00
concurrency:
group: "locale-list"
cancel-in-progress: true
jobs:
create:
runs-on: ubuntu-latest
steps:
- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_KEY }}
repository: "recloudstream/cloudstream"
2022-12-25 18:49:59 +00:00
- uses: actions/checkout@v2
with:
token: ${{ steps.generate_token.outputs.token }}
2022-12-25 18:49:59 +00:00
- name: Edit files
run: |
python3 .github/locales.py
- name: Commit to the repo
run: |
git config --local user.email "111277985+recloudstream[bot]@users.noreply.github.com"
git config --local user.name "recloudstream[bot]"
2022-12-25 18:49:59 +00:00
git add .
# "echo" returns true so the build succeeds, even if no changed files
2023-01-02 11:44:23 +00:00
git commit -m 'update list of locales' || echo
2022-12-25 18:52:30 +00:00
git push