From 43cd91f1d3618b7d7f1bda2fe9bb2aa3ddfa3582 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Wed, 11 Mar 2026 00:24:39 +0100 Subject: [PATCH] New autover for GitHub action compatibility --- autover.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autover.sh b/autover.sh index ca8b6edb..3cc563f6 100755 --- a/autover.sh +++ b/autover.sh @@ -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"