gilde-ci-cd/templates/common/common-ci-workflow.gitlab-ci.yml
Timo Beller cd47250147 feat(workflow): Provides a common workflow
It runs all pipelines but prevents that a branch pipelines is started when there is an open merge request.

https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines
2022-10-06 11:07:35 +02:00

7 lines
211 B
YAML

workflow:
rules:
# Prevent branch pipelines when there is an open merge request
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- when: always