Skip to content

Commit

Permalink
Fix: Pre-commit workflow condition
Browse files Browse the repository at this point in the history
Ensures the pre-commit workflow runs for pushes to the main branch that aren't from merged PRs. The previous condition was too restrictive and prevented the workflow from running for some valid pushes.
  • Loading branch information
RedAtman committed Jul 20, 2024
1 parent f6f5a42 commit b2f24ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
pre-commit:
if: github.event_name == 'push' && github.event.pull_request.merged == false
if: github.event_name == 'push' && !(github.event.pull_request.merged == true)
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit b2f24ea

Please sign in to comment.