Fix: Take future tag version on change-release

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-04-16 18:11:29 +02:00
parent 38f0348884
commit cd3ad03c19
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -4,7 +4,7 @@ set -euo pipefail
chart_yaml=charts/latestver/Chart.yaml
# Patch latest App-Version into Chart
yq -iP ".appVersion = \"$(git describe --tags --abbrev=0)\"" ${chart_yaml}
yq -iP ".appVersion = \"v${TAG_VERSION}\"" ${chart_yaml}
# Validate there has been a change before patching the chart version
git diff --exit-code -- ${chart_yaml} >/dev/null && exit 0 || true