mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 08:45:36 +00:00
Only run one pipeline for merge requests
This commit is contained in:
parent
1f2c473242
commit
98ffe5e885
1 changed files with 9 additions and 0 deletions
|
@ -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…
Reference in a new issue