ci: Add workflow:auto_cancel flag to pipeline settings

This commit is contained in:
Eduardo Almeida
2024-02-19 18:24:16 +00:00
parent fe895b5b4f
commit 53da52fb5c

View File

@@ -26,7 +26,12 @@ stages:
- release
workflow:
auto_cancel:
on_new_commit: interruptible
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
auto_cancel:
on_new_commit: none
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never