From 615ad63178377244763124cc2fc24c99e69eba94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skyler=20M=C3=A4ntysaari?= Date: Wed, 28 Jun 2023 13:07:31 +0300 Subject: [PATCH] Trying to fix the charts-changelog, part two --- .github/workflows/charts-changelog.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/charts-changelog.yaml b/.github/workflows/charts-changelog.yaml index 3781477..0261475 100644 --- a/.github/workflows/charts-changelog.yaml +++ b/.github/workflows/charts-changelog.yaml @@ -27,12 +27,14 @@ jobs: - name: Check changelog annotations if: inputs.isRenovatePR != 'true' run: | + UP_CHARTS_DIR="charts" IN_CHARTS=(${{ inputs.modifiedCharts }}) 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 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 "" done generate-changelog: