File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
dev-support/create-release Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,13 @@ export GPG_TTY=$(tty)
57
57
58
58
function should_build {
59
59
local WHAT=$1
60
- [ -z " $RELEASE_STEP " ] || [ " $WHAT " = " $RELEASE_STEP " ]
60
+ if [[ -z " $RELEASE_STEP " ]]; then
61
+ return 0
62
+ elif [[ " $RELEASE_STEP " == * " $WHAT " * ]]; then
63
+ return 0
64
+ else
65
+ return 1
66
+ fi
61
67
}
62
68
63
69
if should_build " tag" && [ $SKIP_TAG = 0 ]; then
Original file line number Diff line number Diff line change @@ -126,13 +126,15 @@ function get_release_info {
126
126
parse_version)
127
127
echo " Current branch VERSION is $VERSION ."
128
128
129
- if [[ ! $VERSION =~ .* -SNAPSHOT ]]; then
130
- error " Not a SNAPSHOT version: $VERSION "
131
- fi
132
-
133
129
NEXT_VERSION=" $VERSION "
134
- RELEASE_VERSION=" ${VERSION / -SNAPSHOT / } "
130
+ RELEASE_VERSION=" "
135
131
SHORT_VERSION=$( echo " $VERSION " | cut -d . -f 1-2)
132
+ if [[ ! $VERSION =~ .* -SNAPSHOT ]]; then
133
+ RELEASE_VERSION=" $VERSION "
134
+ else
135
+ RELEASE_VERSION=" ${VERSION/ -SNAPSHOT/ } "
136
+ fi
137
+
136
138
local REV=$( echo " $VERSION " | cut -d . -f 3)
137
139
138
140
# Find out what RC is being prepared.
You can’t perform that action at this time.
0 commit comments