Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Internal/Deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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 {
Expand Down