forked from recloudstream/cloudstream
make the update_locales not use github actions token
gh actions token supposedly makes it so the next action doesnt trigger on push
This commit is contained in:
parent
36e780f7c9
commit
61ab957e35
1 changed files with 11 additions and 2 deletions
13
.github/workflows/update_locales.yml
vendored
13
.github/workflows/update_locales.yml
vendored
|
@ -15,14 +15,23 @@ jobs:
|
||||||
create:
|
create:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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"
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ steps.generate_token.outputs.token }}
|
||||||
- name: Edit files
|
- name: Edit files
|
||||||
run: |
|
run: |
|
||||||
python3 .github/locales.py
|
python3 .github/locales.py
|
||||||
- name: Commit to the repo
|
- name: Commit to the repo
|
||||||
run: |
|
run: |
|
||||||
git config user.name "GitHub Actions"
|
git config --local user.email "111277985+recloudstream[bot]@users.noreply.github.com"
|
||||||
git config user.email "actions@github.com"
|
git config --local user.name "recloudstream[bot]"
|
||||||
git add .
|
git add .
|
||||||
# "echo" returns true so the build succeeds, even if no changed files
|
# "echo" returns true so the build succeeds, even if no changed files
|
||||||
git commit -m 'update list of locales' || echo
|
git commit -m 'update list of locales' || echo
|
||||||
|
|
Loading…
Reference in a new issue