1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 18:59:57 +00:00

Only run one pipeline for merge requests

This commit is contained in:
ζeh Matt 2022-09-09 18:10:56 +03:00
parent 1f2c473242
commit 98ffe5e885
No known key found for this signature in database
GPG key ID: 18CE582C71A225B0

View file

@ -1,6 +1,15 @@
default:
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.
# See https://docs.gitlab.com/ee/ci/yaml/#needs
stages: