[patch] 优化版本管理显示
This commit is contained in:
@@ -2,7 +2,7 @@ name: GUI Version Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ master, develop ] # 临时添加 develop 用于测试
|
||||
|
||||
jobs:
|
||||
gui-version-release:
|
||||
@@ -145,9 +145,11 @@ jobs:
|
||||
|
||||
$hasChanges = git diff --staged --quiet
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
# 动态获取当前分支名 (用于测试使用)
|
||||
$BRANCH = git rev-parse --abbrev-ref HEAD
|
||||
git commit -m "[skip ci] Update version to $VERSION"
|
||||
git push origin master
|
||||
Write-Host "Version changes committed and pushed"
|
||||
git push origin $BRANCH
|
||||
Write-Host "Version changes committed and pushed to $BRANCH"
|
||||
} else {
|
||||
Write-Host "No changes to commit"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user