Skip to content

Commit

Permalink
ci(automerge): Prevent workflow from running if pre-commit-ci[bot] pe…
Browse files Browse the repository at this point in the history
…rforms autofix
  • Loading branch information
jpmckinney committed Mar 28, 2024
1 parent 9a6d7bc commit 257471e
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 257471e

Please sign in to comment.