Skip to content

Commit f5b4446

Browse files
committed
draft
1 parent 8765fa4 commit f5b4446

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

update-version.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,8 @@ old_name=$(git config --local user.name)
4646
old_email=$(git config --local user.email)
4747
git config --local user.name "$temp_name"
4848
git config --local user.email "$temp_email"
49-
50-
# 修复在Git Actions中临时用户名和邮箱不生效
51-
export GIT_AUTHOR_NAME="$temp_name"
52-
export GIT_COMMITTER_NAME="$temp_name"
53-
export GIT_AUTHOR_EMAIL="$temp_email"
54-
export GIT_COMMITTER_EMAIL="$temp_email"
55-
5649
git status --porcelain | grep 'pom.xml$' | awk '{print $2}' | xargs git add
57-
git commit -m "Auto-increment version: $root_version"
50+
git commit --author="$temp_name <$temp_email>" -m "Auto-increment version: $root_version"
5851
git push
5952
git config --local user.name "$old_name"
6053
git config --local user.email "$old_email"

0 commit comments

Comments
 (0)