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 <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6492>
This commit is contained in:
Michel Dänzer 2020-08-28 17:08:57 +02:00 committed by Marge Bot
parent d383133ce1
commit a6c4db9798
1 changed files with 2 additions and 1 deletions

View File

@ -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: