mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-11 04:27:56 -05:00
ci: Add workflow rules to avoid duplicate branch/MR pipelines
This commit is contained in:
parent
00a8ce8db6
commit
15b5185e6f
1 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,13 @@
|
|||
# Create merge request pipelines for open merge requests, branch pipelines
|
||||
# otherwise. This allows MRs for new users to run CI, and prevents duplicate
|
||||
# pipelines for branches with open MRs.
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
||||
when: never
|
||||
- if: $CI_COMMIT_BRANCH
|
||||
|
||||
stages:
|
||||
- container
|
||||
- container_coverity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue