chore(ci): use git tag sort to get last two tags
All checks were successful
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 16s
Release / publish-chart (push) Successful in 25s

This commit is contained in:
2025-06-04 19:23:13 +02:00
parent c5783bd053
commit a4180e0953
2 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,8 @@ if [ ! -f "${CHART_FILE}" ]; then
exit 1
fi
DEFAULT_NEW_TAG="$(git describe --abbrev=0)"
DEFAULT_OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")"
DEFAULT_NEW_TAG="$(git tag --sort=-version:refname | head -n 1)"
DEFAULT_OLD_TAG="$(git tag --sort=-version:refname | head -n 2 | tail -n 1)"
if [ -z "${1}" ]; then
read -p "Enter start tag [${DEFAULT_OLD_TAG}]: " OLD_TAG