diff --git a/.github/workflows/deploy-gallery.yml b/.github/workflows/deploy-gallery.yml index 7371e1b40..b107a0a0a 100644 --- a/.github/workflows/deploy-gallery.yml +++ b/.github/workflows/deploy-gallery.yml @@ -95,9 +95,9 @@ jobs: for ($attempt = 1; $attempt -le 12; $attempt++) { try { $marker = Invoke-RestMethod "$baseUrl/deployment.json" - $home = Invoke-WebRequest "$baseUrl/" + $homePage = Invoke-WebRequest "$baseUrl/" if ($marker.commit -ne $env:EXPECTED_COMMIT) { throw 'Deployed commit does not match this workflow.' } - if ($home.Content -notmatch 'Community Script Samples') { throw 'The gallery home page was not deployed.' } + if ($homePage.Content -notmatch 'Community Script Samples') { throw 'The gallery home page was not deployed.' } Write-Host "Verified $baseUrl at commit $env:EXPECTED_COMMIT with $($marker.sampleCount) samples." exit 0 } catch {