Skip to content

Commit 27dcab4

Browse files
committed
Prefix version with "v"
1 parent aec1c74 commit 27dcab4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: hack/tag-release.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616

1717
VERSION=$(cat version.txt)
1818

19-
if [[ ! "${VERSION}" =~ ^([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?$ ]]; then
19+
if [[ ! "${VERSION}" =~ ^v([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?$ ]]; then
2020
echo "Version ${VERSION} must be 'X.Y.Z', 'X.Y.Z-alpha.N', or 'X.Y.Z-beta.N'"
2121
exit 1
2222
fi
2323

24-
if [ "$(git tag -l "v${VERSION}")" ]; then
25-
echo "Tag v${VERSION} already exists"
24+
if [ "$(git tag -l "${VERSION}")" ]; then
25+
echo "Tag ${VERSION} already exists"
2626
exit 1
2727
fi
2828

29-
git tag -a -m "Release ${VERSION}" "v${VERSION}"
30-
git push origin "v${VERSION}"
29+
git tag -a -m "Release ${VERSION}" "${VERSION}"
30+
git push origin "${VERSION}"
3131

32-
echo "release_tag=refs/tags/v${VERSION}" >> $GITHUB_OUTPUT
32+
echo "release_tag=refs/tags/${VERSION}" >> $GITHUB_OUTPUT

Diff for: version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.15
1+
v0.8.15

0 commit comments

Comments
 (0)