Fix enable auto merge

This commit is contained in:
Gabriel Augendre 2023-01-30 15:12:59 +01:00
parent 448a3445c8
commit 8008a6a8c3

View file

@ -6,7 +6,8 @@ on:
- cron: '0 18 * * TUE' - cron: '0 18 * * TUE'
permissions: permissions:
contents: read pull-requests: write
contents: write
jobs: jobs:
update: update:
@ -37,7 +38,8 @@ jobs:
title: Update dependencies title: Update dependencies
delete-branch: true delete-branch: true
- name: Enable auto merge - name: Enable auto merge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2 uses: peter-evans/enable-pull-request-automerge@v2
with: 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 }} pull-request-number: ${{ steps.create-pull-request.outputs.pull-request-number }}