From d2b95201c3baea72e2eaad241a3d3aa19db985dc Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Fri, 1 Mar 2024 08:17:20 +0100 Subject: [PATCH] ci: fix dynamic pipeline for tag pipelines --- tools/ci/dynamic_pipelines/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/ci/dynamic_pipelines/utils.py b/tools/ci/dynamic_pipelines/utils.py index 25fee44caa..63e7645479 100644 --- a/tools/ci/dynamic_pipelines/utils.py +++ b/tools/ci/dynamic_pipelines/utils.py @@ -1,6 +1,5 @@ # SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 - import typing as t import yaml @@ -22,11 +21,10 @@ def dump_jobs_to_yaml( 'tools/ci/dynamic_pipelines/templates/.dynamic_jobs.yml', '.gitlab/ci/common.yml', ], - # https://gitlab.com/gitlab-org/gitlab/-/issues/222370#note_662695503 'workflow': { 'rules': [ - {'if': '$CI_MERGE_REQUEST_IID'}, - {'if': '$CI_COMMIT_BRANCH'}, + # always run the child pipeline, if they are created + {'when': 'always'}, ], }, }