Skip to content

Commit 900829c

Browse files
authored
ci: Disable no-commit-to-branch @ GHA (#748)
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
1 parent 8bedb53 commit 900829c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,14 @@ jobs:
387387
- pre-commit
388388
- metadata-validation
389389
environment-variables:
390+
# `no-commit-to-branch` is skipped because it does not make sense
391+
# in the CI, only locally.
392+
# Ref: https://github.com/pre-commit/pre-commit-hooks/issues/1124
390393
- >- # only affects pre-commit, set for all for simplicity:
391-
SKIP=hadolint,shfmt
394+
SKIP=
395+
hadolint,
396+
no-commit-to-branch,
397+
shfmt,
392398
tox-run-posargs:
393399
- ''
394400
xfail:

0 commit comments

Comments
 (0)