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
|
# Commit
|
||||||
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
|
$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
|
Write-Host "Creating commit..." -ForegroundColor Cyan
|
||||||
git commit -m $message
|
git commit -m $message
|
||||||
|
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-Host "✓ Commit successful" -ForegroundColor Green
|
Write-Host "[SUCCESS] Commit successful" -ForegroundColor Green
|
||||||
|
|
||||||
# Push
|
# Push
|
||||||
Write-Host "Pushing to GitHub..." -ForegroundColor Cyan
|
Write-Host "Pushing to GitHub..." -ForegroundColor Cyan
|
||||||
git push origin dev
|
git push origin dev
|
||||||
|
|
||||||
if ($LASTEXITCODE -eq 0) {
|
if ($LASTEXITCODE -eq 0) {
|
||||||
Write-Host "✓ Push successful" -ForegroundColor Green
|
Write-Host "[SUCCESS] Push successful" -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Host "✗ Push failed" -ForegroundColor Red
|
Write-Host "[ERROR] Push failed" -ForegroundColor Red
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Write-Host "✗ Commit failed" -ForegroundColor Red
|
Write-Host "[ERROR] Commit failed" -ForegroundColor Red
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
Pop-Location
|
Pop-Location
|
||||||
@@ -136,7 +142,7 @@ function Stop-CDService {
|
|||||||
|
|
||||||
if ($processes) {
|
if ($processes) {
|
||||||
$processes | Stop-Process -Force
|
$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 {
|
} else {
|
||||||
Write-Host "No running CD processes found" -ForegroundColor Yellow
|
Write-Host "No running CD processes found" -ForegroundColor Yellow
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user