File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,8 @@ old_name=$(git config --local user.name)
4646old_email=$( git config --local user.email)
4747git config --local user.name " $temp_name "
4848git 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-
5649git 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 "
5851git push
5952git config --local user.name " $old_name "
6053git config --local user.email " $old_email "
You can’t perform that action at this time.
0 commit comments