From 3d556b8ff90d0eb16781d4db77bccf0d1eff3b1b Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sat, 21 Aug 2021 13:51:03 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 99411305..8de4759f 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -50,6 +50,7 @@ jobs: name: .gh-pages path: .gh-pages/guides/${{ matrix.site }}.guide.xml deploy: + if: ${{ github.ref == 'refs/heads/master' }} needs: grab runs-on: ubuntu-latest steps: @@ -57,6 +58,12 @@ jobs: uses: actions/checkout@v2 - name: Download Artifacts uses: actions/download-artifact@v2 + - name: Generate Token + uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@4.1.1 with: @@ -64,3 +71,7 @@ jobs: folder: .gh-pages target-folder: guides clean: false + token: ${{ steps.generate-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'