From 8008a6a8c39b03ac9b0a22775a03a928f9718e6d Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 30 Jan 2023 15:12:59 +0100 Subject: [PATCH] Fix enable auto merge --- .github/workflows/update-dependencies.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-dependencies.yaml b/.github/workflows/update-dependencies.yaml index bbd88e7..b551bfd 100644 --- a/.github/workflows/update-dependencies.yaml +++ b/.github/workflows/update-dependencies.yaml @@ -6,7 +6,8 @@ on: - cron: '0 18 * * TUE' permissions: - contents: read + pull-requests: write + contents: write jobs: update: @@ -37,7 +38,8 @@ jobs: title: Update dependencies delete-branch: true - name: Enable auto merge + if: steps.cpr.outputs.pull-request-operation == 'created' uses: peter-evans/enable-pull-request-automerge@v2 with: - token: ${{ secrets.PERSONAL_TOKEN_PR }} + # Can't use the fine-grained token here because they don't have access to the GraphQL API. pull-request-number: ${{ steps.create-pull-request.outputs.pull-request-number }}