Update action.yaml
This commit is contained in:
@@ -105,6 +105,11 @@ runs:
|
|||||||
CHARTS+=("${path_parts[1]}/${path_parts[2]}")
|
CHARTS+=("${path_parts[1]}/${path_parts[2]}")
|
||||||
done
|
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[@]}"
|
echo "Number of detected changed charts: ${#CHARTS[@]}"
|
||||||
if [ ${#CHARTS[@]} -eq 0 ] || [ "${CHARTS[0]}" = " " ] || [ "${CHARTS[0]}" = "/" ]; then
|
if [ ${#CHARTS[@]} -eq 0 ] || [ "${CHARTS[0]}" = " " ] || [ "${CHARTS[0]}" = "/" ]; then
|
||||||
echo "No Changed Charts detected since latest tag..."
|
echo "No Changed Charts detected since latest tag..."
|
||||||
@@ -118,7 +123,7 @@ runs:
|
|||||||
# Get only the chart paths
|
# Get only the chart paths
|
||||||
|
|
||||||
# Set output to changed charts
|
# 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[*]}"
|
printf "::set-output name=modifiedChartsAfterTag::%s\n" "${CHARTS[*]}"
|
||||||
fi
|
fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user