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