mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Fix locale issues
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '**.xml'
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: "locale"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
create:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate access token
|
|
id: generate_token
|
|
uses: tibdex/github-app-token@v2
|
|
with:
|
|
app_id: ${{ secrets.GH_APP_ID }}
|
|
private_key: ${{ secrets.GH_APP_KEY }}
|
|
repository: "recloudstream/cloudstream"
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
- name: Install dependencies
|
|
run: |
|
|
pip3 install lxml
|
|
- 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]"
|
|
git add .
|
|
# "echo" returns true so the build succeeds, even if no changed files
|
|
git commit -m 'chore(locales): fix locale issues' || echo
|
|
git push
|