Skip to content

Commit

Permalink
ci: Prevent workflow from running if pre-commit-ci[bot] performs autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Mar 28, 2024
1 parent 5d98ac1 commit 5e6b7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 5e6b7cd

Please sign in to comment.