Skip to content

Commit 1c513ce

Browse files
authored
Merge pull request #840 from sushanth0910/remove-validations-on-release
remove validations on release branch
2 parents 21bf8e4 + 945d258 commit 1c513ce

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

hack/tag-release.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ if [[ ! "${VERSION}" =~ ^([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?
2121
exit 1
2222
fi
2323

24-
BRANCH=$(git branch --show-current)
25-
26-
if [[ ! "${BRANCH}" =~ ^(release-)([0-9]+[.][0-9]+)$ ]]; then
27-
echo "Automatic tag creation must take place on a release branch."
28-
exit 1
29-
fi
30-
31-
BRANCH_MAJ_MIN=${BRANCH#release-}
32-
VERSION_MAJ_MIN=$(echo ${VERSION} | sed -Ee 's/-(alpha|beta)\.[0-9]+$//' | sed -Ee 's/\.[0-9]+$//')
33-
34-
if [[ ! "${BRANCH_MAJ_MIN}" = $VERSION_MAJ_MIN ]]; then
35-
echo "Major minor version of tag must match major minor version of branch."
36-
exit 1
37-
fi
38-
3924
if [ "$(git tag -l "v${VERSION}")" ]; then
4025
echo "Tag v${VERSION} already exists"
4126
exit 0

0 commit comments

Comments
 (0)