[patch] PDD登录状态GUI回调优化

This commit is contained in:
2025-10-11 10:12:45 +08:00
parent 66dd6051e5
commit 80e9bba722

View File

@@ -163,9 +163,18 @@ jobs:
Write-Host "Committing to branch: $BRANCH";
git commit -m "[skip ci] Update version to v$VERSION";
git push origin $BRANCH;
Write-Host "Pulling latest changes before push...";
git pull --rebase origin $BRANCH;
if ($LASTEXITCODE -eq 0) {
Write-Host "Pushing changes...";
git push origin $BRANCH;
Write-Host "Changes committed and pushed";
} else {
Write-Host "Pull failed, trying force push...";
git push origin $BRANCH;
}
} else {
Write-Host "No changes to commit";
}