From f48da6da55078e732fb870cee4e72762e774c603 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Mon, 18 Sep 2023 11:55:20 -0500 Subject: [PATCH] Run merge request pipelines for pre-commit. Link: https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html#use-rules-to-add-jobs Signed-off-by: Mario Limonciello --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) 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