mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
ci: Do not create pipelines for branches with open MRs
Pipelines for non-protected branches are set to 'manual', and thus cheap. However they may still get picked by `@marge-bot`, meaning that the bot waits for the completion of a pipeline that never starts. Avoid that by not creating pipelines for branches with open merge requests. Credit to Jordan, who came up with this for gst. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3153>
This commit is contained in:
parent
c5cd195506
commit
d3e96a36ce
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ variables:
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"'
|
||||||
|
when: never
|
||||||
- if: '$CI_MERGE_REQUEST_IID'
|
- if: '$CI_MERGE_REQUEST_IID'
|
||||||
- if: '$CI_COMMIT_TAG'
|
- if: '$CI_COMMIT_TAG'
|
||||||
- if: '$CI_COMMIT_BRANCH'
|
- if: '$CI_COMMIT_BRANCH'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue