From e616e37b48dbc8d677d44f26dfa3cebf31e371fc Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 26 May 2021 17:44:04 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 67575cb19c..68b8dca26c 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -94,12 +94,6 @@ jobs: commit-message: '[Bot] Update playlists' branch: bot/auto-update delete-branch: true - - name: Approve Pull Request - if: steps.pr.outputs.pull-request-operation == 'created' - uses: juliangruber/approve-pull-request-action@v1 - with: - github-token: ${{ secrets.PAT }} - number: ${{ steps.pr.outputs.pull-request-number }} - name: Merge Pull Request if: steps.pr.outputs.pull-request-operation == 'created' uses: peter-evans/enable-pull-request-automerge@v1 @@ -107,3 +101,9 @@ jobs: token: ${{ secrets.PAT }} pull-request-number: ${{ steps.pr.outputs.pull-request-number }} merge-method: squash + - name: Approve Pull Request + if: steps.pr.outputs.pull-request-operation == 'created' + uses: juliangruber/approve-pull-request-action@v1 + with: + github-token: ${{ secrets.PAT }} + number: ${{ steps.pr.outputs.pull-request-number }}