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"