Skip to content

Commit 0e40f37

Browse files
authored
Merge pull request #19420 from k8s-infra-cherrypick-robot/cherry-pick-19418-to-release-3.6
[release-3.6] Fix release script prerelease GitHub template release
2 parents bea2185 + a46f009 commit 0e40f37

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/release.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ main() {
254254

255255
# Upload artifacts.
256256
if [ "${DRY_RUN}" == "true" ] || [ "${NO_UPLOAD}" == 1 ]; then
257-
log_callout "Skipping artifact upload to gs://etcd. --no-upload flat is set."
257+
log_callout "Skipping artifact upload to gs://etcd. --no-upload flag is set."
258258
else
259259
read -p "Upload etcd ${RELEASE_VERSION} release artifacts to gs://etcd [y/N]? " -r confirm
260260
[[ "${confirm,,}" == "y" ]] || exit 1
@@ -266,7 +266,7 @@ main() {
266266

267267
# Push images.
268268
if [ "${DRY_RUN}" == "true" ] || [ "${NO_DOCKER_PUSH}" == 1 ]; then
269-
log_callout "Skipping docker push. --no-docker-push flat is set."
269+
log_callout "Skipping docker push. --no-docker-push flag is set."
270270
else
271271
read -p "Publish etcd ${RELEASE_VERSION} docker images to quay.io [y/N]? " -r confirm
272272
[[ "${confirm,,}" == "y" ]] || exit 1
@@ -364,7 +364,8 @@ main() {
364364
release_notes_temp_file=$(mktemp)
365365

366366
local release_version=${RELEASE_VERSION#v} # Remove the v prefix from the release version (i.e., v3.6.1 -> 3.6.1)
367-
local release_version_major_minor=${release_version%.*} # Remove the patch from the version (i.e., 3.6)
367+
local release_version_major_minor
368+
release_version_major_minor=$(echo "${release_version}" | cut -d. -f1-2) # Remove the patch from the version (i.e., 3.6)
368369
local release_version_major=${release_version_major_minor%.*} # Extract the major (i.e., 3)
369370
local release_version_minor=${release_version_major_minor/*./} # Extract the minor (i.e., 6)
370371

0 commit comments

Comments
 (0)