fix(scripts): adapt regexp for release candidates
Helm / helm-lint (push) Successful in 6s
Helm / helm-unittest (push) Successful in 15s
Release / publish-chart (push) Successful in 2m30s

This commit is contained in:
2026-06-01 22:12:37 +02:00
parent daeedce720
commit 2237090669
+2 -2
View File
@@ -8,9 +8,9 @@ if [ ! -f "${CHART_FILE}" ]; then
exit 1
fi
rc_pattern='-rc(\.[0-9]+)?$'
rc_pattern="\-rc([-\.][0-9]+)?$"
# Exclude prerelease tags (matching -rc or -rc-<digits>) from default tag selection
# Exclude prerelease tags (matching -rc or -rc.<digits>) from default tag selection
DEFAULT_NEW_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp "${rc_pattern}" | head --lines 1)"
DEFAULT_OLD_TAG="$(git tag --sort=-version:refname | grep --invert-match --perl-regexp "${rc_pattern}" | head --lines 2 | tail --lines 1)"