diff --git a/Internal/Deploy.ps1 b/Internal/Deploy.ps1 index 8200f5504..1f8c978a4 100644 --- a/Internal/Deploy.ps1 +++ b/Internal/Deploy.ps1 @@ -26,6 +26,7 @@ function PushChanges # Direct commit to base branch invoke-git commit --allow-empty -m $CommitMessage invoke-git push origin $BaseBranch + return "" } else { # Create PR to base branch if (-not (git ls-remote --heads origin $BaseBranch)) { @@ -245,7 +246,11 @@ try { Set-Content -Path (Join-Path "./.github" "RELEASENOTES.copy.md") -Value $releaseNotes -Encoding utf8 } $prUrl = PushChanges -BaseBranch $branch -CommitMessage "Deploying AL-Go from $algoBranch ($srcSHA) to $branch" -DirectCommit $directCommit - Write-Host "::notice::Deployed to $repo branch $branch. PR URL: $prUrl" + if ($prUrl) { + Write-Host "::notice::Deployed to $repo branch $branch. PR URL: $prUrl" + } else { + Write-Host "::notice::Deployed to $repo branch $branch" + } } } finally {