From 7f262c3994f0d36552c314453592507fc76637f1 Mon Sep 17 00:00:00 2001 From: Louise Poole Date: Mon, 21 Oct 2024 17:56:32 +0200 Subject: [PATCH] ci: allow numbers in substream release version tag --- substreams/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substreams/release.sh b/substreams/release.sh index 7c55b91..0f1c5be 100755 --- a/substreams/release.sh +++ b/substreams/release.sh @@ -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