diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index f42ede0..5536573 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -8,7 +8,7 @@ permissions: contents: write # to merge the PR jobs: dependabot: - if: ${{ github.actor == 'dependabot[bot]' }} + if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} runs-on: ubuntu-latest steps: - id: dependabot-metadata @@ -24,7 +24,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }} precommit: - if: ${{ github.actor == 'pre-commit-ci[bot]' }} + if: ${{ github.event.pull_request.user.login == 'pre-commit-ci[bot]' }} runs-on: ubuntu-latest steps: - env: