Skip to content

Commit 987b736

Browse files
committed
Create
1 parent 39716b1 commit 987b736

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

scripts/create_release.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ message ">>> Release: $RELEASE_VERSION"
5050

5151
# 5. Start release
5252
read -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

0 commit comments

Comments
 (0)