From d2527c60aa5c8e55893c6d68c6294983d0ae4d47 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Tue, 3 Feb 2026 13:34:54 +0300 Subject: [PATCH] fix(ci): improve workflow rules for child pipeline Add multiple pipeline source conditions to ensure child pipeline runs when triggered from MR --- scripts/generate-pipeline.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/generate-pipeline.sh b/scripts/generate-pipeline.sh index 46c2fb4..04e67d4 100755 --- a/scripts/generate-pipeline.sh +++ b/scripts/generate-pipeline.sh @@ -7,7 +7,9 @@ cat > "$OUTPUT_FILE" << 'HEADER' workflow: rules: - if: '$CI_PIPELINE_SOURCE == "pipeline"' - - when: always + - if: '$CI_PIPELINE_SOURCE == "parent_pipeline"' + - if: '$CI_PIPELINE_SOURCE == "trigger"' + - if: '$CI_COMMIT_BRANCH' variables: AWS_EC2_METADATA_DISABLED: "true"