diff --git a/.azure/scripts/sync-mirror.ps1 b/.azure/scripts/sync-mirror.ps1 index 0ca3ce861..2c5075273 100644 --- a/.azure/scripts/sync-mirror.ps1 +++ b/.azure/scripts/sync-mirror.ps1 @@ -34,6 +34,9 @@ git remote add azdo-mirror "https://nibanks:$Env:AzDO_PAT@mscodehub.visualstudio git reset --hard origin/$Branch # Push to the AzDO repo. -git push azdo-mirror $Branch - -Write-Host "Sync complete." +$Result = (git push azdo-mirror $Branch) +if ($Result.Contains("Head is now at")) { + Write-Host "Successfully mirrored latest changes to https://mscodehub.visualstudio.com/msquic/_git/msquic" +} else { + Write-Error $Result +} diff --git a/.azure/templates/sync-mirror.yml b/.azure/templates/sync-mirror.yml index 5c8cd02be..702d27405 100644 --- a/.azure/templates/sync-mirror.yml +++ b/.azure/templates/sync-mirror.yml @@ -20,4 +20,3 @@ jobs: arguments: -Branch ${{ parameters.branch }} env: AzDO_PAT: $(AzDO_PAT) - continueOnError: true