修复远程终端识别本地操作系统问题并完善工作流配置 #7
@@ -70,7 +70,10 @@ jobs:
|
|||||||
git config user.email "github-actions@github.com"
|
git config user.email "github-actions@github.com"
|
||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "chore: bump version to $NEW_VERSION"
|
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
|
else
|
||||||
echo "版本号已更新,跳过递增"
|
echo "版本号已更新,跳过递增"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user