ci: allow numbers in substream release version tag

This commit is contained in:
Louise Poole
2024-10-21 17:56:32 +02:00
parent d616481c4a
commit 7f262c3994

View File

@@ -10,7 +10,7 @@ current_tag=$(git describe --tags --exact-match HEAD 2>/dev/null)
if [ -n "$current_tag" ]; then
# If the HEAD is at a tag, extract the prefix and version
if [[ $current_tag =~ ^([a-zA-Z-]*-)?([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
if [[ $current_tag =~ ^([a-zA-Z0-9-]*-)?([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
# Prefix without the trailing hyphen (if any)
package="${BASH_REMATCH[1]%?}"
# Semantic version