Skip to content

Commit

Permalink
ci: Disable no-commit-to-branch @ GHA (#748)
Browse files Browse the repository at this point in the history
This turns off the "is push to master" in GitHub Actions CI/CD as it
does not make sense in this environment, being local-only [[1]].

[1]: pre-commit/pre-commit-hooks#1124
  • Loading branch information
webknjaz authored Jan 8, 2025
1 parent 8bedb53 commit 900829c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,14 @@ jobs:
- pre-commit
- metadata-validation
environment-variables:
# `no-commit-to-branch` is skipped because it does not make sense
# in the CI, only locally.
# Ref: https://github.com/pre-commit/pre-commit-hooks/issues/1124
- >- # only affects pre-commit, set for all for simplicity:
SKIP=hadolint,shfmt
SKIP=
hadolint,
no-commit-to-branch,
shfmt,
tox-run-posargs:
- ''
xfail:
Expand Down

0 comments on commit 900829c

Please sign in to comment.