mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
Prefix version with "v"
This commit is contained in:
@@ -16,17 +16,17 @@
|
|||||||
|
|
||||||
VERSION=$(cat version.txt)
|
VERSION=$(cat version.txt)
|
||||||
|
|
||||||
if [[ ! "${VERSION}" =~ ^([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?$ ]]; then
|
if [[ ! "${VERSION}" =~ ^v([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?$ ]]; then
|
||||||
echo "Version ${VERSION} must be 'X.Y.Z', 'X.Y.Z-alpha.N', or 'X.Y.Z-beta.N'"
|
echo "Version ${VERSION} must be 'X.Y.Z', 'X.Y.Z-alpha.N', or 'X.Y.Z-beta.N'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(git tag -l "v${VERSION}")" ]; then
|
if [ "$(git tag -l "${VERSION}")" ]; then
|
||||||
echo "Tag v${VERSION} already exists"
|
echo "Tag ${VERSION} already exists"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git tag -a -m "Release ${VERSION}" "v${VERSION}"
|
git tag -a -m "Release ${VERSION}" "${VERSION}"
|
||||||
git push origin "v${VERSION}"
|
git push origin "${VERSION}"
|
||||||
|
|
||||||
echo "release_tag=refs/tags/v${VERSION}" >> $GITHUB_OUTPUT
|
echo "release_tag=refs/tags/${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
0.8.15
|
v0.8.15
|
||||||
|
|||||||
Reference in New Issue
Block a user