Skip to content

Commit 2d0181f

Browse files
committed
Add SKIP environment variable to pre-commit step in lint workflow
1 parent 5212635 commit 2d0181f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ jobs:
3030
run: uv sync --all-extras --dev
3131

3232
- name: Run pre-commit
33+
env:
34+
SKIP: ${{ github.ref == 'refs/heads/main' && 'no-commit-to-branch' || '' }}
3335
run: uv run pre-commit run --show-diff-on-failure --color=always --all-files

0 commit comments

Comments
 (0)