Skip to content

Commit 4e55bc3

Browse files
committed
➕ Add mechanism about keeping release process if environment variable is *TRUE*.
1 parent a5e74b3 commit 4e55bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ci/build_git-tag_or_create_github-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fi
3737
Input_Arg_Release_Type=$1
3838
Input_Arg_Debug_Mode=$2
3939

40-
keep_release=(echo "$KEEP_RELEASE_IF_PRE_VERSION")
40+
keep_release="$KEEP_RELEASE_IF_PRE_VERSION"
4141

4242
if [ "$Input_Arg_Release_Type" == "" ]; then
4343
echo "❌ The argument 'Input_Arg_Release_Type' (first argument) cannot be empty."
@@ -280,7 +280,7 @@ tag_and_release_python_project() {
280280
echo "🔎 🐍 📦 Python package new release version: $New_Release_Version"
281281
is_pre_release_version=$(echo $New_Release_Version | grep -E -o '([\.-]*([a-zA-Z]{1,})+([0-9]{0,})*){1,}')
282282
echo "🔎 🤰 📦 is pre-release version: $is_pre_release_version"
283-
if [ "$is_pre_release_version" == "" ]; then
283+
if [ "$is_pre_release_version" == "" ] || [ "$keep_release" == "TRUE" ]; then
284284
echo "🎓 🐍 📦 The version is a official-release."
285285
# do different things with different ranches
286286
# git event: push

0 commit comments

Comments
 (0)