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 uses: actions/download-artifact@v2
with: with:
name: README.md 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 - name: Create Pull Request
id: pr id: pr
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
@ -94,8 +100,8 @@ 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
token: ${{ secrets.PAT }} token: ${{ steps.generate-token.outputs.token }}
- name: Merge Pull Request - name: Enable Pull Request Automerge
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
with: with: