ci: Create check-merge-request job only in MR pipelines

It can't work as intended in other pipelines.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1338>
(cherry picked from commit 1b625044dc)
This commit is contained in:
Michel Dänzer 2024-02-28 09:30:00 +01:00 committed by Alan Coopersmith
parent 8c872eda63
commit 961d72684b

View file

@ -132,6 +132,8 @@ check-merge-request:
extends:
- .fdo.ci-fairy
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
script:
- ci-fairy check-merge-request --require-allow-collaboration --junit-xml=results.xml
artifacts: