File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 2121
2222RELEASE_BRANCH=" ${CURRENT_BRANCH} "
2323
24+ REMOTE=${1:- origin}
25+ REMOTE_URL=$( git remote get-url ${REMOTE} )
26+
27+ if [[ ! $( git ls-remote --exit-code ${REMOTE_URL} ${RELEASE_BRANCH} ) ]]; then
28+ echo " !! Please make sure '${RELEASE_BRANCH} ' exists in remote '${REMOTE} '" >&2
29+ exit 1
30+ fi
31+
2432# ## look for latest on-branch tag
2533PREVIOUS_TAG=$( git describe --tags --abbrev=0 --match " *${RELEASE_BRANCH## release-} *" 2> /dev/null || true)
2634
3139fi
3240
3341echo $NEW_VERSION > VERSION
34-
3542IMAGE_TAG=" v${NEW_VERSION} "
3643make manifests
3744
38- REMOTE=${1:- origin}
39- REMOTE_URL=$( git remote get-url ${REMOTE} )
40-
4145git checkout -b " feat/new-version-${NEW_VERSION} "
4246git commit -m " Release ${NEW_VERSION} " VERSION manifests/
4347git push --set-upstream ${REMOTE} " feat/new-version-${NEW_VERSION} "
You can’t perform that action at this time.
0 commit comments