mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 00:50:57 +02:00
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 pipeline
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user