Update auto-update.yml

what-a-patch-1
Aleksandr Statciuk 5 years ago
parent ab09f9abd2
commit 11ba2d6e08

@ -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

Loading…
Cancel
Save