Skip to content

Commit 8a9bd69

Browse files
committed
[Breaking Change] (config) Add command lines to configure user info and remove unused setting.
1 parent f4c0cff commit 8a9bd69

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
@@ -181,6 +181,8 @@ build_git_tag_or_github_release() {
181181
echo " πŸ”πŸ‘€ [DEBUG MODE] Build git tag $New_Release_Tag in git branch '$Current_Branch'."
182182
else
183183
git tag -a "$New_Release_Tag" -m "$New_Release_Tag"
184+
git config --global user.email "chi10211201@cycu.org.tw"
185+
git config --global user.name "Chisanan232"
184186
git push -u origin --tags
185187
fi
186188
echo "πŸŽ‰ 🍻 🌳 🏷 Build git tag which named '$New_Release_Tag' with current branch '$Current_Branch' successfully!"
@@ -208,7 +210,6 @@ if [ "$Input_Arg_Release_Type" == 'python-package' ]; then
208210
github_release=$(curl -s https://api.github.com/repos/Chisanan232/GitHub-Action_Workflow-Template-Python/releases/latest | jq -r '.tag_name')
209211
# shellcheck disable=SC2002
210212
generate_new_version_as_tag "python"
211-
# pkg_version=$(cat ./"$Input_Arg_Python_Pkg_Name"/__pkg_info__.py | grep -E "$Python_Version_Reg" | grep -E -o "$Software_Version_Reg")
212213

213214
build_git_tag=false
214215
create_github_release=false
@@ -240,7 +241,6 @@ if [ "$Input_Arg_Release_Type" == 'python-package' ]; then
240241
if [ "$build_git_tag" == true ] || [ "$create_github_release" == true ]; then
241242

242243
echo "πŸ”Ž 🐍 πŸ“¦ Python package new release version: $New_Release_Version"
243-
# is_pre_release_version=$(echo $pkg_version | sed -n 's/.*\([a-zA-Z][0-9]*\)/\1/p')
244244
is_pre_release_version=$(echo $New_Release_Version | grep -E -o '([\.-]*([a-zA-Z]{1,})+([0-9]{0,})*){1,}')
245245
echo "πŸ”Ž 🀰 πŸ“¦ is pre-release version: $is_pre_release_version"
246246
if [ "$is_pre_release_version" == "" ]; then

0 commit comments

Comments
Β (0)