Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
fix: workflow rules
· 263eb4b4
G.J.R. Timmer
authored
Sep 24, 2024
263eb4b4
fix: rules
· 2aafbce3
G.J.R. Timmer
authored
Sep 24, 2024
2aafbce3
Hide whitespace changes
Inline
Side-by-side
templates/default.yml
View file @
2aafbce3
...
...
@@ -6,7 +6,10 @@ default:
workflow
:
rules
:
# Do not create pipeline on branch commit when their is an open merge request
-
if
:
$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_OPEN_MERGE_REQUESTS
-
if
:
$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when
:
never
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
if
:
$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when
:
never
-
if
:
$CI_COMMIT_BRANCH
-
when
:
always