diff --git a/scripts/ci/jobs/pre-commit.yml b/scripts/ci/jobs/pre-commit.yml index 627e2dd9dad8318485361151aa1576df6e36e480..2a39cf9a230037fb016e850cd8756f11945aaf37 100644 --- a/scripts/ci/jobs/pre-commit.yml +++ b/scripts/ci/jobs/pre-commit.yml @@ -4,6 +4,9 @@ pre commit: name: $PRECOMMIT_IMAGE extends: - .defaults + rules: + - if: '$CI_COMMIT_BRANCH == "master"' + when: never script: - pre-commit install - pre-commit run --all-files