Commit 2d59efb9 authored by Julien Osman's avatar Julien Osman
Browse files

ENH: Update gitlab-ci-yml with workflow rules to avoid duplicat pipelines

See https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
parent 0049cd73
Pipeline #8042 passed with stages
in 79 minutes and 44 seconds
......@@ -38,6 +38,13 @@ variables:
# The fetch strategy fails with LFS and GitLab
GIT_STRATEGY: "clone"
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never
- if: '$CI_COMMIT_BRANCH'
stages:
- precheck
- prepare
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment