New autover for GitHub action compatibility
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-03-11 00:24:39 +01:00
parent e48cdacce5
commit 43cd91f1d3

View file

@ -22,9 +22,10 @@ if [ -z "$VERSION" ]; then
fi
# Apply common rules to all outputs:
# 1. Replace "rc-" with "rc"
# 2. Replace "beta-" with "beta"
# 3. Replace all remaining dashes with "."
VERSION=$(echo "$VERSION" | sed 's/rc-/rc/g; s/beta-/beta/g; s/-/./g')
# - Remove "-" at the end
# - Replace "rc-" with "rc"
# - Replace "beta-" with "beta"
# - Replace all remaining dashes with "."
VERSION=$(echo "$VERSION" | sed 's/-$//; s/rc-/rc/g; s/beta-/beta/g; s/-/./g')
printf '%s' "$VERSION"