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:
parent
d383133ce1
commit
a6c4db9798
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue