[patch] 优化版本管理显示

This commit is contained in:
2025-10-10 10:10:07 +08:00
parent e7a7bd2644
commit a21e2693fa
3 changed files with 12 additions and 10 deletions

View File

@@ -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"
}