From cc0cd4addf68df7a14bf7f4c9c2daa6489fc20d7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 25 Apr 2023 13:41:06 +0200 Subject: ci: skip ci-fairy checks on main branch We merged a commit by mistake which doesn't have S-o-b. ci-fairy is unhappy about it and will fail the check. Skip it if we aren't running in a merge request context. Signed-off-by: Simon Ser --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c7fe6a..a2a14a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,6 +36,10 @@ check-commit: - ci-fairy check-commits --signed-off-by --junit-xml=results.xml variables: GIT_DEPTH: 100 + rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + when: always + - when: never artifacts: reports: junit: results.xml -- cgit v1.2.3