From 7ce6bdfa284b41aa4d43e18dba1615953ae7a794 Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Mon, 24 Jun 2024 13:46:46 +0300 Subject: [PATCH] Add validation that tag must always start with v --- scripts/pre-release-process.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pre-release-process.sh b/scripts/pre-release-process.sh index fd0a0714..0f59b1a1 100755 --- a/scripts/pre-release-process.sh +++ b/scripts/pre-release-process.sh @@ -9,6 +9,11 @@ if [ "$#" -ne 1 ]; then exit fi +if [[ ! $1 == v* ]]; then + echo "Tag must start with 'v'" + exit +fi + TAG=$1 #PREVTAG=$2 PREVTAG=$(git describe --abbrev=0 --tags)