File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5- # Make sure the release tag is provided.
65if (( "$# " != 1 ))
76then
8- echo " Tag has to be provided. "
7+ echo " Tag has to be provided"
98
109 exit 1
1110fi
1211
13- # Make sure the working directory is clear.
14- if [ -z " $( git status --porcelain) " ]; then
15- echo " Working directory clean"
16- else
17- echo " Your working directory is dirty. Did you forget to commit your changes?"
18-
19- exit 1
20- fi
21-
22- RELEASE_BRANCH=" 6.x"
23- CURRENT_BRANCH=$( git branch --show-current)
12+ CURRENT_BRANCH=" 6.x"
2413VERSION=$1
2514
26- # Make sure current branch and release branch match.
27- if (( $RELEASE_BRANCH != $CURRENT_BRANCH ))
28- then
29- echo " Release branch ($RELEASE_BRANCH ) does not matches the current active branch ($CURRENT_BRANCH )."
30-
31- exit 1
32- fi
33-
3415# Always prepend with "v"
3516if [[ $VERSION != v* ]]
3617then
3718 VERSION=" v$VERSION "
3819fi
3920
4021# Tag Framework
41- git pull
4222git tag $VERSION
4323git push origin --tags
4424
5939 cd $TMP_DIR ;
6040
6141 git clone $REMOTE_URL .
62- git checkout " $RELEASE_BRANCH " ;
42+ git checkout " $CURRENT_BRANCH " ;
6343
6444 git tag $VERSION
6545 git push origin --tags
You can’t perform that action at this time.
0 commit comments