Skip to content

Commit

Permalink
use app token when enabling automerge
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Aug 11, 2023
1 parent 70b85f6 commit 7f32f2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'metacpan-automation[bot]'
steps:
- name: Generate Auth Token
id: auth-token
uses: jamestrousdale/github-app-jwt-token@0.1.4
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ steps.auth-token.outputs.access-token }}
pull-request-number: ${{ github.event.pull_request.number }}

0 comments on commit 7f32f2c

Please sign in to comment.