ci: Rework workflow rules to prevent duplicate pipelines
authorJordan Petridis <jordan@centricular.com>
Wed, 29 Sep 2021 12:15:03 +0000 (15:15 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 5 Oct 2021 11:49:01 +0000 (11:49 +0000)
commit0f77939714655a4993ece227daf7e8c89e6aee69
tree925d88e2b561433f7ff4e7f1900abaf7f552da1d
parent62077b9d050758df6bf484618c1e2ca8da9b01ee
ci: Rework workflow rules to prevent duplicate pipelines

Currently gitlab spawns 2 pipelines, one for the branch and
another for the merge request.

Update our rules so that only one of them is spawned depending
on the situation.

https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/958>
.gitlab-ci.yml