diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efd8f90b..6e4c0264 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,10 @@ check-commits: pre-commit: stage: test image: registry.gitlab.com/kernel-firmware/linux-firmware + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - pre-commit run --all-files