Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2021-05-26 17:44:04 +03:00
parent 245a9a819e
commit e616e37b48

View File

@ -94,12 +94,6 @@ jobs:
commit-message: '[Bot] Update playlists' commit-message: '[Bot] Update playlists'
branch: bot/auto-update branch: bot/auto-update
delete-branch: true 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 - name: Merge Pull Request
if: steps.pr.outputs.pull-request-operation == 'created' if: steps.pr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v1 uses: peter-evans/enable-pull-request-automerge@v1
@ -107,3 +101,9 @@ jobs:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
pull-request-number: ${{ steps.pr.outputs.pull-request-number }} pull-request-number: ${{ steps.pr.outputs.pull-request-number }}
merge-method: squash 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 }}