From: Michel Dänzer Date: Fri, 28 Aug 2020 15:08:57 +0000 (+0200) Subject: ci: Restrict "success" job to pipelines for MRs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6c4db9798b3a4b496ad18430dcba1839986b896;p=mesa.git 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: --- 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: