diff --git a/.github/workflows/dependency.yml b/.github/workflows/dependency.yml index f6e18912..233b1912 100644 --- a/.github/workflows/dependency.yml +++ b/.github/workflows/dependency.yml @@ -8,7 +8,7 @@ permissions: jobs: dependency: 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 Dependency PRs run: gh pr merge --auto --merge "$PR_URL"