fix: Resolve PowerShell encoding issues in start-cd.ps1
This commit is contained in:
18
start-cd.ps1
18
start-cd.ps1
@@ -86,25 +86,31 @@ function Invoke-OnceCommit {
|
||||
|
||||
# Commit
|
||||
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
|
||||
$message = "manual: Update at $timestamp`n`n🤖 Generated with Claude Code Continuous Delivery`n`nCo-Authored-By: Claude <noreply@anthropic.com>"
|
||||
$message = @"
|
||||
manual: Update at $timestamp
|
||||
|
||||
Generated with Claude Code Continuous Delivery
|
||||
|
||||
Co-Authored-By: Claude <noreply@anthropic.com>
|
||||
"@
|
||||
|
||||
Write-Host "Creating commit..." -ForegroundColor Cyan
|
||||
git commit -m $message
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "✓ Commit successful" -ForegroundColor Green
|
||||
Write-Host "[SUCCESS] Commit successful" -ForegroundColor Green
|
||||
|
||||
# Push
|
||||
Write-Host "Pushing to GitHub..." -ForegroundColor Cyan
|
||||
git push origin dev
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "✓ Push successful" -ForegroundColor Green
|
||||
Write-Host "[SUCCESS] Push successful" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "✗ Push failed" -ForegroundColor Red
|
||||
Write-Host "[ERROR] Push failed" -ForegroundColor Red
|
||||
}
|
||||
} else {
|
||||
Write-Host "✗ Commit failed" -ForegroundColor Red
|
||||
Write-Host "[ERROR] Commit failed" -ForegroundColor Red
|
||||
}
|
||||
} finally {
|
||||
Pop-Location
|
||||
@@ -136,7 +142,7 @@ function Stop-CDService {
|
||||
|
||||
if ($processes) {
|
||||
$processes | Stop-Process -Force
|
||||
Write-Host "✓ Stopped $($processes.Count) CD process(es)" -ForegroundColor Green
|
||||
Write-Host "[SUCCESS] Stopped $($processes.Count) CD process(es)" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "No running CD processes found" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user