File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,18 +50,18 @@ message ">>> Release: $RELEASE_VERSION"
5050
5151# 5. Start release
5252read -r -p " Last release version was '$LATEST_TAG ', do you want to create '$RELEASE_VERSION ' [Y/n]: " RESPONSE
53- # if [[ $RESPONSE =~ ^([yY][eE][sS]|[yY])$ ]]; then
54- #
55- # BRANCH_NAME="release/$RELEASE_VERSION"
56- # message ">>>>> Creating branch '$BRANCH_NAME' from develop..."
57- #
58- # git checkout -b "$BRANCH_NAME" develop
59- # git push origin "$BRANCH_NAME"
60- # gh pr create --base main --head "$BRANCH_NAME" --title "Release - $RELEASE_VERSION" --fill
61- #
62- # else
63- #
64- # message "Action cancelled exiting..."
65- # exit 1
66- #
67- # fi
53+ if [[ $RESPONSE =~ ^([yY][eE][sS]| [yY])$ ]]; then
54+
55+ BRANCH_NAME=" release/$RELEASE_VERSION "
56+ message " >>>>> Creating branch '$BRANCH_NAME ' from develop..."
57+
58+ git checkout -b " $BRANCH_NAME " develop
59+ git push origin " $BRANCH_NAME "
60+ gh pr create --base main --head " $BRANCH_NAME " --title " Release - $RELEASE_VERSION " --fill
61+
62+ else
63+
64+ message " Action cancelled exiting..."
65+ exit 1
66+
67+ fi
You can’t perform that action at this time.
0 commit comments