forked from espressif/esp-idf
Merge branch 'fix/dynamic_pipeline_workflow_for_tag' into 'master'
ci: fix dynamic pipeline for tag pipelines See merge request espressif/esp-idf!29370
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import typing as t
|
import typing as t
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
@ -22,11 +21,10 @@ def dump_jobs_to_yaml(
|
|||||||
'tools/ci/dynamic_pipelines/templates/.dynamic_jobs.yml',
|
'tools/ci/dynamic_pipelines/templates/.dynamic_jobs.yml',
|
||||||
'.gitlab/ci/common.yml',
|
'.gitlab/ci/common.yml',
|
||||||
],
|
],
|
||||||
# https://gitlab.com/gitlab-org/gitlab/-/issues/222370#note_662695503
|
|
||||||
'workflow': {
|
'workflow': {
|
||||||
'rules': [
|
'rules': [
|
||||||
{'if': '$CI_MERGE_REQUEST_IID'},
|
# always run the child pipeline, if they are created
|
||||||
{'if': '$CI_COMMIT_BRANCH'},
|
{'when': 'always'},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user