kopia lustrzana https://github.com/espressif/esp-idf
ci: add general pipeline create rules
- If a commit message starts with "test ci", push commit will trigger a pipeline - If an MR title starts with "WIP:" or "Draft:", push commit will NOT trigger a pipeline - If a commit message starts with "WIP:" or "Draft:", push commit will NOT trigger a pipelinepull/6718/head
rodzic
80e86e7939
commit
86287504ba
|
@ -13,6 +13,12 @@ workflow:
|
|||
# Disable those non-protected push triggered pipelines
|
||||
- if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_PIPELINE_SOURCE == "push"'
|
||||
when: never
|
||||
- if: '$CI_COMMIT_TITLE =~ /^test[ _]ci:/'
|
||||
when: always
|
||||
- if: '$CI_MERGE_REQUEST_IID && $CI_MERGE_REQUEST_TITLE =~ /^wip|draft:/i'
|
||||
when: never
|
||||
- if: '$CI_COMMIT_TITLE =~ /^wip|draft/i'
|
||||
when: never
|
||||
- when: always
|
||||
|
||||
variables:
|
||||
|
|
Ładowanie…
Reference in New Issue