[patch] PDD登录状态GUI回调优化
This commit is contained in:
@@ -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 "Changes committed and pushed";
|
||||
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user