From 93aa4cd31fd0faf2d4a3fac07b668dd2090c5a42 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 3 Aug 2021 02:44:05 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 52497dd15..a87e88854 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -310,6 +310,12 @@ jobs: uses: actions/checkout@v2 with: ref: bot/auto-update + - name: Generate Token + uses: tibdex/github-app-token@v1 + id: gh-pages-token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Install Dependencies run: npm install - name: Generate Playlists @@ -319,6 +325,10 @@ jobs: with: branch: gh-pages folder: .gh-pages + token: ${{ steps.gh-pages-token.outputs.token }} + git-config-name: iptv-bot + git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com + commit-message: '[Bot] Deploy to GitHub Pages' update-readme: runs-on: ubuntu-latest needs: generate @@ -350,7 +360,7 @@ jobs: ref: bot/auto-update - name: Generate Token uses: tibdex/github-app-token@v1 - id: generate-token + id: pr-token with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} @@ -366,7 +376,7 @@ jobs: committer: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>' branch: bot/auto-update delete-branch: true - token: ${{ steps.generate-token.outputs.token }} + token: ${{ steps.pr-token.outputs.token }} - name: Enable Pull Request Automerge if: steps.pr.outputs.pull-request-operation == 'created' uses: peter-evans/enable-pull-request-automerge@v1