mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2026-07-17 16:37:15 +00:00
QA-354 Prevent duplicate pipelines for MRs
This commit is contained in:
parent
63ff12d1d6
commit
5d2c20c365
1 changed files with 9 additions and 0 deletions
|
|
@ -11,6 +11,15 @@ include:
|
|||
default:
|
||||
retry: 2
|
||||
|
||||
# Prevent duplicate pipelines for push events to branches that also have open MRs
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: always
|
||||
- if: $CI_PIPELINE_SOURCE == "push" && $CI_OPEN_MERGE_REQUESTS
|
||||
when: never
|
||||
- when: always
|
||||
|
||||
stages:
|
||||
- template
|
||||
- run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue