From 87db430d3cdb86790503f1958b24f3a3069848d7 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 26 May 2021 17:16:58 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 07a282cf80..2b79927dd6 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -85,6 +85,7 @@ jobs: with: name: README.md - name: Create Pull Request + id: pr uses: peter-evans/create-pull-request@v3 with: title: '[Bot] Update playlists' @@ -93,3 +94,16 @@ 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.GITHUB_TOKEN }} + 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 + with: + token: ${{ secrets.PAT }} + pull-request-number: ${{ steps.pr.outputs.pull-request-number }} + merge-method: squash