Skip to content

Commit

Permalink
Run bot fixes only on non-draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
camposandro committed Feb 13, 2024
1 parent 856e2fe commit 0bbbeb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pre-commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
name: Run pre-commit hooks

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
pre-commit-ci:
Expand All @@ -30,4 +33,4 @@ jobs:
env:
SKIP: "check-lincc-frameworks-template-version,no-commit-to-branch,check-added-large-files,validate-pyproject,sphinx-build,pytest-check"
- uses: pre-commit-ci/[email protected]
if: always()
if: failure() && github.event_name == 'pull_request' && github.event.pull_request.draft == false

0 comments on commit 0bbbeb5

Please sign in to comment.