Skip to content

Commit

Permalink
Fix pre-commit check on the CI that fails on commits merged to master
Browse files Browse the repository at this point in the history
The `no-commit-to-branch` prevents from accidental commit to master
locally. It is not needed to run on the CI. Whatismore, it has to be
disabled, otherwise it causes merge commits to fail.
  • Loading branch information
suricactus committed Dec 10, 2024
1 parent 1fb964a commit 08282dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
with:
python-version: '3.12'
- name: Pre-commit
env:
# set the `no-commit-to-branch` to be skipped, otherwise the check fails when we merge to `master` branch
SKIP: no-commit-to-branch
uses: pre-commit/[email protected]

test:
Expand Down

0 comments on commit 08282dd

Please sign in to comment.