mirror of
https://github.com/bitnami/containers.git
synced 2026-02-09 18:57:39 +08:00
chore(ci-pipeline): Run CI wokflow for each modified container (#78427)
Keep 5 as maximun number of assets modified Signed-off-by: Fran Mulero <francisco-jose.mulero@broadcom.com>
This commit is contained in:
4
.github/workflows/ci-pipeline.yml
vendored
4
.github/workflows/ci-pipeline.yml
vendored
@@ -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 .)
|
||||
|
||||
Reference in New Issue
Block a user