From f2f901a3dab44226e52809c239c0b801f0828d22 Mon Sep 17 00:00:00 2001 From: "iptv-bot[bot]" <84861620+iptv-bot[bot]@users.noreply.github.com> Date: Mon, 6 Sep 2021 00:05:05 +0300 Subject: [PATCH] Update update-codes.yml (#79) Co-authored-by: Aleksandr Statciuk --- .github/workflows/update-codes.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-codes.yml b/.github/workflows/update-codes.yml index 35336e33..71c86304 100644 --- a/.github/workflows/update-codes.yml +++ b/.github/workflows/update-codes.yml @@ -39,7 +39,6 @@ jobs: branch: bot/update-codes file_pattern: .gh-pages/_items.json .gh-pages/codes.json pull-request: - if: ${{ github.ref == 'refs/heads/master' }} needs: update-codes runs-on: ubuntu-latest steps: @@ -65,6 +64,8 @@ jobs: [1]: https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }} github_token: ${{ steps.generate-token.outputs.token }} + - name: Check outputs + run: echo "Pull Request Number - ${{ steps.pr.outputs.pr_number }}" - name: Enable Pull Request Automerge uses: peter-evans/enable-pull-request-automerge@v1 with: @@ -77,6 +78,7 @@ jobs: github-token: ${{ secrets.PAT }} number: ${{ steps.pr.outputs.pr_number }} deploy: + if: ${{ github.ref == 'refs/heads/master' }} needs: pull-request runs-on: ubuntu-latest steps: