ci: Run auto-merge as update bot

Recently this workflow started failing with 'Resource not accessible by
integration' when using the default GitHub Actions access token.

Ref. ridedott/merge-me-action#1581
This commit is contained in:
Antoine Cotten 2022-11-16 17:54:41 +01:00
parent d11e281d91
commit 0fd8aae1c5
No known key found for this signature in database
GPG Key ID: 94637E68D4A79DD0
1 changed files with 8 additions and 1 deletions

View File

@ -18,11 +18,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Impersonate update bot
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Approve and merge - name: Approve and merge
uses: ridedott/merge-me-action@v2 uses: ridedott/merge-me-action@v2
with: with:
GITHUB_LOGIN: docker-elk-updater GITHUB_LOGIN: docker-elk-updater
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: Delete branch - name: Delete branch
uses: actions/github-script@v6 uses: actions/github-script@v6