chore(release): 1.1.9-rc5

This commit is contained in:
Théo LAGACHE
2026-01-06 16:35:44 +01:00
parent 6c506e6907
commit 4cc4bed785
+14
View File
@@ -9,6 +9,20 @@ if [ -z "$1" ]; then
fi
VERSION=$1
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ "$CURRENT_BRANCH" = "main" ]; then
if [[ ! "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: On 'main' branch, only release tags (X.Y.Z) are allowed."
exit 1
fi
else
if [[ ! "$VERSION" =~ -rc ]]; then
echo "Error: On branch '$CURRENT_BRANCH', only RC tags (containing -rc) are allowed."
exit 1
fi
fi
CLEAN_VERSION=${VERSION#v}
CURRENT_DATE=$(date +%Y-%m-%d)