From 257471eed30f1e6b8fef7b1f2ac0ee15b90158d2 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Thu, 28 Mar 2024 19:45:15 -0400 Subject: [PATCH] ci(automerge): Prevent workflow from running if pre-commit-ci[bot] performs autofix --- .github/workflows/automerge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index f42ede08..55365732 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: