Skip to content

Commit 0d69382

Browse files
committed
enforce v prefix
1 parent 78e4223 commit 0d69382

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ if [[ -z "${tag_name}" ]]; then
1313
exit 1
1414
fi
1515

16+
if [[ ! "${tag_name}" =~ ^v[0-9].* ]]; then
17+
echo "release tag must start with 'v' (for example: v0.5)" >&2
18+
exit 1
19+
fi
20+
1621
mise trust -y mise.toml
1722
mise install
1823
AGENTTALLY_VERSION="${version}" mise run check

0 commit comments

Comments
 (0)