Skip to content

citemplate: extend merge-request rules

Jordan Petridіs requested to merge alatiera/gst-ci:alatiera/fix-rules into master

This is a copy-paste of the merge-pipeline template rules [1] with a small addition.

The template on its own only checks if $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH and doesn't take into account that there might be stable branches which you want the pipeline to still run.

Thus we add a check with GST_UPSTREAM_BRANCH that we have already been using for similar purposes.

[1] https://gitlab.com/gitlab-org/gitlab/-/blob/17e9f197049539642e1c90a4ee86d8b2fc2d1fa9/lib/gitlab/ci/templates/Workflows/MergeRequest-Pipelines.gitlab-ci.yml

Edited by Jordan Petridіs

Merge request reports

Loading