Skip to content

Commit 9f2fa94

Browse files
committed
[Test] (config) Test for assigning environment variable.
1 parent 833b5bf commit 9f2fa94

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

scripts/ci/build_get-tag_or_create_github-release.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ if [ "$release_type" == 'python-package' ]; then
188188
echo "build tag and create GitHub release, also push code to PyPi"
189189
build_git_tag_or_github_release
190190
echo "Done! This is Official-Release so please push source code to PyPi."
191-
export RELEASE_TYPE="Official"
191+
# RELEASE_TYPE="Official"; export RELEASE_TYPE
192+
echo "Official" >> $RELEASE_TYPE
192193
echo "[Final Running Result] Official-Release"
193194
else
194195
echo "The version is a pre-release."
@@ -200,7 +201,8 @@ if [ "$release_type" == 'python-package' ]; then
200201
echo "build tag and create GitHub release only"
201202
build_git_tag_or_github_release
202203
echo "Done! This is Pre-Release so please don't push this to PyPi."
203-
export RELEASE_TYPE="Pre"
204+
# RELEASE_TYPE="Pre"; export RELEASE_TYPE
205+
echo "Pre" >> $RELEASE_TYPE
204206
echo "[Final Running Result] Pre-Release"
205207
fi
206208

@@ -230,7 +232,8 @@ elif [ "$release_type" == 'github-action-reusable-workflow' ]; then
230232
# 1. Yes, it has different. -> Build git tag, GitHub release and version branch
231233
build_git_tag_or_github_release
232234
echo "Done! This is Official-Release of GitHub Action reusable workflow, please create a version branch of it."
233-
export RELEASE_TYPE="$new_ver"
235+
# RELEASE_TYPE="$new_ver"; export RELEASE_TYPE
236+
echo "$new_ver" >> $RELEASE_TYPE
234237
echo "[Final Running Result] Official-Release"
235238

236239
# current_ver=$(git describe --tag --abbrev=0 --match "v[0-9]\.[0-9]\.[0-9]" | grep -E -o '[0-9]\.[0-9]\.[0-9]' | head -n1 | cut -d "." -f1)
@@ -254,7 +257,8 @@ elif [ "$release_type" == 'github-action-reusable-workflow' ]; then
254257
# 1. No, do nothing.
255258
# Return nothing output
256259
echo "Release note file doesn't change. Don't do anything."
257-
export RELEASE_TYPE="Pre"
260+
# RELEASE_TYPE="Pre"; export RELEASE_TYPE
261+
echo "Pre" >> $RELEASE_TYPE
258262
echo "[Final Running Result] Pre-Release"
259263
fi
260264

scripts/ci/deployment_new_version_workflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ "$final_release_type" == "Pre" ]; then
88
else
99
echo "It detects Official-Release flag."
1010
if [ "$debug_mode" == true ]; then
11-
echo " 🔍👀[DEBUG MODE] Create new git branch for the new version."
11+
echo " 🔍👀[DEBUG MODE] Create new git branch for the new version $final_release_type."
1212
else
1313
echo "Add git remote reference."
1414
git remote add github-action_workflow-template https://github.com/Chisanan232/GitHub-Action-Template-Python.git

0 commit comments

Comments
 (0)