Update action.yaml

This commit is contained in:
Kjeld Schouten-Lebbing 2022-04-03 15:14:58 +02:00 committed by GitHub
parent fac0079fa3
commit c80233cfae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -104,13 +104,14 @@ runs:
else else
echo "Changed Charts detected since latest tag, parsing..." echo "Changed Charts detected since latest tag, parsing..."
printf "::set-output name=changesDetectedAfterTag::%s\n" "true" printf "::set-output name=changesDetectedAfterTag::%s\n" "true"
CHARTS=() CHARTS=()
# Get only the chart paths # Get only the chart paths
for CHARTPATH in "${changed_charts[@]}" for CHARTPATH in "${changed_charts[@]}"
do do
IFS='/' read -r -a path_parts <<< "${CHARTPATH}" IFS='/' read -r -a path_parts <<< "${CHARTPATH}"
CHARTS+=("${path_parts[1]}/${path_parts[2]}") CHARTS+=("${path_parts[1]}/${path_parts[2]}")
done done
# Set output to changed charts
printf "::set-output name=modifiedChartsAfterTag::%s\n" "${CHARTS[*]}" printf "::set-output name=modifiedChartsAfterTag::%s\n" "${CHARTS[*]}"
fi