From b0363266f9851855c0d8b72e922dedb52c71775b Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Thu, 4 Jul 2024 17:03:08 +0100 Subject: [PATCH] Check automerge against PR owner, not github.actor --- .github/workflows/auto-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 3a3f7b2..d3dc86f 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -10,7 +10,7 @@ permissions: jobs: auto-merge: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }} + if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }} steps: - name: Enable auto-merge for Dependabot PRs run: |