Update action.yaml
This commit is contained in:
@@ -50,7 +50,7 @@ runs:
|
|||||||
# Set output to changed charts
|
# Set output to changed charts
|
||||||
printf "::set-output name=addedOrModified::%s\n" "${CHARTS[*]}"
|
printf "::set-output name=addedOrModified::%s\n" "${CHARTS[*]}"
|
||||||
|
|
||||||
- name: Collect changed charts
|
- name: Collect bumped charts after last tag
|
||||||
id: filter-bumped-charts
|
id: filter-bumped-charts
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -65,6 +65,7 @@ runs:
|
|||||||
|
|
||||||
filter_charts() {
|
filter_charts() {
|
||||||
while read -r chart; do
|
while read -r chart; do
|
||||||
|
echo "test ${chart}"
|
||||||
[[ ! -d "$chart" ]] && continue
|
[[ ! -d "$chart" ]] && continue
|
||||||
if [[ $(git diff $latest_tag $chart/Chart.yaml | grep "+version") ]]; then
|
if [[ $(git diff $latest_tag $chart/Chart.yaml | grep "+version") ]]; then
|
||||||
echo "$chart"
|
echo "$chart"
|
||||||
@@ -73,7 +74,7 @@ runs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
export -f filter_charts
|
export -f
|
||||||
|
|
||||||
lookup_changed_charts() {
|
lookup_changed_charts() {
|
||||||
local commit="$1"
|
local commit="$1"
|
||||||
@@ -121,3 +122,4 @@ runs:
|
|||||||
echo "Changed charts with short paths: ${changed_charts[*]}"
|
echo "Changed charts with short paths: ${changed_charts[*]}"
|
||||||
printf "::set-output name=modifiedChartsAfterTag::%s\n" "${CHARTS[*]}"
|
printf "::set-output name=modifiedChartsAfterTag::%s\n" "${CHARTS[*]}"
|
||||||
fi
|
fi
|
||||||
|
popd > /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user