Skip to content

Commit 93f3fa2

Browse files
committed
draft
1 parent d72cb6a commit 93f3fa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ for module_path in $changed_module_paths; do
3939
version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
4040
new_version=$(echo "$version" | awk -F'[.]' '{printf "%d.%d.%d", $1, $2, $3+1}')
4141
echo "path=$module_path, artifact_id=${artifact_id}, version=$version, new_version=$new_version"
42-
description+="${artifact_id}-$new_version; "
42+
description+="${artifact_id}-$new_version;"
4343
# 执行模块升版。约定主分支的版本号形如x.y.z
4444
mvn versions:set -q -DnewVersion="$new_version" -DartifactId="$artifact_id" -DgenerateBackupPoms=false -DupdateMatchingVersions=false -DprocessDependencies=false
4545
# 重新回到项目根目录
@@ -53,7 +53,7 @@ old_name=$(git config --local user.name)
5353
old_email=$(git config --local user.email)
5454
git config --local user.name "GitHub Actions Robot"
5555
git config --local user.email "1127664027@qq.com"
56-
git status --porcelain | grep 'pom.xml$' | awk '{print $2}' | xargs git add
56+
git add "**pom.xml"
5757
git commit -m "Auto-increment version: $description"
5858
git push
5959
# 还原原本的用户和邮箱信息

0 commit comments

Comments
 (0)