From b16dee498810fc7bee6bc8cecc05e59c4860b068 Mon Sep 17 00:00:00 2001 From: Raghav Kansal Date: Mon, 20 Nov 2023 10:06:09 -0600 Subject: [PATCH] Update auto-merge.yml --- .github/workflows/auto-merge.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 80f0134..856b090 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -8,7 +8,9 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest - if: ${{ github.actor == 'pre-commit-ci[bot]' && github.event_name == 'pull_request'}} + if: + ${{ github.event_name == 'pull_request' && + github.event.pull_request.user.login == 'pre-commit-ci[bot]'}} steps: - name: Auto-merge PR run: gh pr merge --auto --merge "$PR_URL"