Trying to fix the charts-changelog, part two

This commit is contained in:
Skyler Mäntysaari 2023-06-28 13:07:31 +03:00
parent 3f6aa1e3e8
commit 615ad63178

View file

@ -27,12 +27,14 @@ jobs:
- name: Check changelog annotations - name: Check changelog annotations
if: inputs.isRenovatePR != 'true' if: inputs.isRenovatePR != 'true'
run: | run: |
UP_CHARTS_DIR="charts"
IN_CHARTS=(${{ inputs.modifiedCharts }}) IN_CHARTS=(${{ inputs.modifiedCharts }})
CHARTS=($(python -c 'import sys;a=sys.argv[1].translate(str.maketrans("","","[]")).split(",");print(" ".join(a))' $IN_CHARTS)) CHARTS=($(python -c 'import sys;a=sys.argv[1].translate(str.maketrans("","","[]")).split(",");print(" ".join(a))' $IN_CHARTS))
for i in charts/"${CHARTS[@]}" for i in "${CHARTS[@]}"
do do
IFS='/' read -r -a chart_parts <<< "$i" IFS='/' read -r -a chart_parts <<< "$i"
./.github/scripts/check-releasenotes.sh "${chart_parts[0]}/${chart_parts[1]}" chart_path="$UP_CHARTS_DIR/${chart_parts[0]}/${chart_parts[1]}"
./.github/scripts/check-releasenotes.sh "$chart_path"
echo "" echo ""
done done
generate-changelog: generate-changelog: