From a6c4db9798b3a4b496ad18430dcba1839986b896 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Fri, 28 Aug 2020 17:08:57 +0200 Subject: [PATCH] ci: Restrict "success" job to pipelines for MRs Expected benefits: * No more spurious non-MR pipelines with just this job. * No more warnings from GitLab such as on https://gitlab.freedesktop.org/mesa/mesa/-/pipelines/195778 Reviewed-by: Daniel Stone Part-of: --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35593d7909f..3fea645d414 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -126,7 +126,8 @@ success: when: never - changes: *all_paths when: never - - when: on_success + - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME' + when: on_success variables: GIT_STRATEGY: none script: -- 2.30.2