From 5e51407649eaa7b82f3e845a7c2cc8d06e93f6d3 Mon Sep 17 00:00:00 2001
From: Tim Jaacks <tim.jaacks@garz-fricke.com>
Date: Tue, 31 May 2022 18:09:48 +0200
Subject: [PATCH] Add possibility to skip MR pipeline check via label

---
 common.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common.yml b/common.yml
index 69faaf6..774d8a2 100644
--- a/common.yml
+++ b/common.yml
@@ -56,6 +56,9 @@ yamllint:
   extends: .infrastructure
   stage: check
   rules:
+    # Do not run check if the "skip build" label is set on the merge request
+    - if: $CI_MERGE_REQUEST_LABELS =~ /skip build/
+      when: never
     # Do not integration pipeline for merge requests for integrate/gitlab-ci/ branches
     # The integration is done from the pipeline in gitlab-ci already
     - if: $CI_COMMIT_REF_NAME =~ /^integrate\/gitlab-ci\/.*/
-- 
GitLab