Skip to content

Commit

Permalink
sq: Attempt to skip one hook for 'push' event
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszachy authored and psss committed May 7, 2024
1 parent 88efcb1 commit 7b634aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Skip hook when run for 'push'
if: ${{ github.event_name == 'push' }}
run: echo "SKIP=no-commit-to-branch" >> $GITHUB_ENV
- uses: pre-commit/[email protected]

0 comments on commit 7b634aa

Please sign in to comment.