summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-04-25 13:41:06 +0200
committerSimon Ser <contact@emersion.fr>2023-04-25 13:41:06 +0200
commitcc0cd4addf68df7a14bf7f4c9c2daa6489fc20d7 (patch)
tree409d6b9433202819abfc98cca4b8ccec654e88da
parentfbf7fc351715aa1f05763bec73f7fc1aa97bc5bd (diff)
downloadwayland-protocols-cc0cd4addf68df7a14bf7f4c9c2daa6489fc20d7.tar.gz
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 <contact@emersion.fr>
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
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