ci: Only run the sanity job if there's a MR
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 10 Dec 2020 11:48:32 +0000 (12:48 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Dec 2020 12:57:08 +0000 (12:57 +0000)
commit5d833f433afe955cc01edc372c17f0059ab99492
tree46dbbc1cf27a69ae9490b52b1d5a0c47fbd5c434
parentf27ee2a3ad9b9fcb9fbc154485c0d0a60f3a7221
ci: Only run the sanity job if there's a MR

As it will fail right away if there isn't, and that prevents the CI to
run on people's branches.

$ ci-fairy check-merge-request --require-allow-collaboration --junit-xml=check-merge-request.xml
ERROR: No open merge request against mesa/mesa with sha 9f6aba4be0ceb59d35732651cc44f676e93b70b5

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Fixes: d4151f2e ("ci: Run sanity job only in pre-merge pipelines")
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8032>
.gitlab-ci.yml