mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 10:21:11 +00:00
Only run one pipeline for merge requests
This commit is contained in:
parent
1f2c473242
commit
98ffe5e885
@ -1,5 +1,14 @@
|
|||||||
default:
|
default:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
||||||
|
# Merge requests have two pipelines, filter pipelines using branch and merge request event together.
|
||||||
|
# See https://docs.gitlab.com/ee/ci/pipelines/merge_request_pipelines.html#two-pipelines-when-pushing-to-a-branch
|
||||||
|
workflow:
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
||||||
|
when: never
|
||||||
|
- if: $CI_COMMIT_BRANCH
|
||||||
|
|
||||||
# Note: We set `needs` on each job to control the job DAG.
|
# Note: We set `needs` on each job to control the job DAG.
|
||||||
# See https://docs.gitlab.com/ee/ci/yaml/#needs
|
# See https://docs.gitlab.com/ee/ci/yaml/#needs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user