mirror of
https://github.com/Luzifer/go-latestver.git
synced 2024-12-20 10:31:16 +00:00
Fix: Take future tag version on change-release
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
38f0348884
commit
cd3ad03c19
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ set -euo pipefail
|
||||||
chart_yaml=charts/latestver/Chart.yaml
|
chart_yaml=charts/latestver/Chart.yaml
|
||||||
|
|
||||||
# Patch latest App-Version into Chart
|
# 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
|
# Validate there has been a change before patching the chart version
|
||||||
git diff --exit-code -- ${chart_yaml} >/dev/null && exit 0 || true
|
git diff --exit-code -- ${chart_yaml} >/dev/null && exit 0 || true
|
||||||
|
|
Loading…
Reference in a new issue