From 61ab957e35ff44d67a3dc344c5541c818e573042 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Fri, 6 Jan 2023 22:27:23 +0100 Subject: [PATCH] make the update_locales not use github actions token gh actions token supposedly makes it so the next action doesnt trigger on push --- .github/workflows/update_locales.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_locales.yml b/.github/workflows/update_locales.yml index 032637ab..8764d721 100644 --- a/.github/workflows/update_locales.yml +++ b/.github/workflows/update_locales.yml @@ -15,14 +15,23 @@ 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" - uses: actions/checkout@v2 + with: + token: ${{ steps.generate_token.outputs.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 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 'update list of locales' || echo