Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2021-05-26 17:16:58 +03:00
parent 485589a845
commit 87db430d3c
1 changed files with 14 additions and 0 deletions

View File

@ -85,6 +85,7 @@ jobs:
with: with:
name: README.md name: README.md
- name: Create Pull Request - name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
with: with:
title: '[Bot] Update playlists' title: '[Bot] Update playlists'
@ -93,3 +94,16 @@ 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.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