From ee9fa4384786085fc5c57266e175cd13aac5ca0a Mon Sep 17 00:00:00 2001 From: Fran Mulero Date: Mon, 3 Mar 2025 13:29:08 +0100 Subject: [PATCH] chore(ci-pipeline): Run CI wokflow for each modified container (#78427) Keep 5 as maximun number of assets modified Signed-off-by: Fran Mulero --- .github/workflows/ci-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 2e0c52485ca1..de9688bb94b5 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -43,8 +43,8 @@ jobs: if [[ "$non_readme_files" -le "0" ]]; then # The only changes are .md files -> SKIP echo "result=skip" >> $GITHUB_OUTPUT - elif [[ "${#assets[@]}" -ne "1" ]]; then - echo "Changes should affect to only one asset. You are currently modifying: ${assets[@]}" + elif [[ "${#assets[@]}" -ge "5" ]]; then + echo "Maximun number of assets reached. You are currently modifying: ${assets[@]}" echo "result=skip" >> $GITHUB_OUTPUT else containers_json=$(printf "%s\n" "${flavors[@]}" | jq -R . | jq -cs .)