Update action.yaml

This commit is contained in:
Kjeld Schouten-Lebbing
2022-04-03 17:39:26 +02:00
committed by GitHub
parent 1d44e2ce04
commit f2ca8fb8a6

View File

@@ -105,6 +105,11 @@ runs:
CHARTS+=("${path_parts[1]}/${path_parts[2]}")
done
# Remove duplicates
CHARTS=( `printf "%s\n" "${CHARTS[@]}" | sort -u` )
# Set output to changed charts
printf "::set-output name=addedOrModified::%s\n" "${CHARTS[*]}"
echo "Number of detected changed charts: ${#CHARTS[@]}"
if [ ${#CHARTS[@]} -eq 0 ] || [ "${CHARTS[0]}" = " " ] || [ "${CHARTS[0]}" = "/" ]; then
echo "No Changed Charts detected since latest tag..."
@@ -118,7 +123,7 @@ runs:
# Get only the chart paths
# Set output to changed charts
echo "Changed charts with short paths: ${changed_charts[*]}"
echo "Changed charts: ${changed_charts[*]}"
printf "::set-output name=modifiedChartsAfterTag::%s\n" "${CHARTS[*]}"
fi
popd > /dev/null