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'
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 }}