File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,6 @@ if [[ ! "${VERSION}" =~ ^([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha|beta)[.]([0-9]+))?
2121 exit 1
2222fi
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-
3924if [ " $( git tag -l " v${VERSION} " ) " ]; then
4025 echo " Tag v${VERSION} already exists"
4126 exit 0
You can’t perform that action at this time.
0 commit comments