Update auto-update.yml

This commit is contained in:
Aleksandr Statciuk 2021-05-26 18:23:27 +03:00
parent f9a6de1907
commit bc8dee83d5
1 changed files with 8 additions and 2 deletions

View File

@ -84,6 +84,12 @@ jobs:
uses: actions/download-artifact@v2
with:
name: README.md
- name: Generate Token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@v3
@ -94,8 +100,8 @@ jobs:
commit-message: '[Bot] Update playlists'
branch: bot/auto-update
delete-branch: true
token: ${{ secrets.PAT }}
- name: Merge Pull Request
token: ${{ steps.generate-token.outputs.token }}
- name: Enable Pull Request Automerge
if: steps.pr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v1
with: