]> git.apps.os.sepia.ceph.com Git - linux-firmware.git/commitdiff
Run merge request pipelines for pre-commit.
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 18 Sep 2023 16:55:20 +0000 (11:55 -0500)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 18 Sep 2023 17:34:24 +0000 (12:34 -0500)
Link: https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html#use-rules-to-add-jobs
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
.gitlab-ci.yml

index efd8f90baec2fa01c519150bfdfc6ec95d8e2c79..6e4c02647d601cba39dd0464cbbbca0f8bbb8afe 100644 (file)
@@ -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