修改推送到当前分支
This commit is contained in:
@@ -70,7 +70,10 @@ jobs:
|
||||
git config user.email "github-actions@github.com"
|
||||
git add package.json
|
||||
git commit -m "chore: bump version to $NEW_VERSION"
|
||||
git push
|
||||
|
||||
# 推送到当前分支
|
||||
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
|
||||
git push origin $BRANCH_NAME || git push origin HEAD:refs/heads/$BRANCH_NAME
|
||||
else
|
||||
echo "版本号已更新,跳过递增"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user