Merge pull request #90 from propeller-heads/lp/improve-release-script

ci: allow numbers in substream release version tag
This commit is contained in:
Louise Poole
2024-10-21 23:02:16 +02:00
committed by GitHub

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