Skip to content

Commit 9857be3

Browse files
authored
Merge pull request #1048 from pnp/copilot/fix-failing-deploy-job
Fix deploy verification `$HOME` variable collision
2 parents c32e435 + 75a4333 commit 9857be3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/deploy-gallery.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ jobs:
9595
for ($attempt = 1; $attempt -le 12; $attempt++) {
9696
try {
9797
$marker = Invoke-RestMethod "$baseUrl/deployment.json"
98-
$home = Invoke-WebRequest "$baseUrl/"
98+
$homePage = Invoke-WebRequest "$baseUrl/"
9999
if ($marker.commit -ne $env:EXPECTED_COMMIT) { throw 'Deployed commit does not match this workflow.' }
100-
if ($home.Content -notmatch '<title>Community Script Samples</title>') { throw 'The gallery home page was not deployed.' }
100+
if ($homePage.Content -notmatch '<title>Community Script Samples</title>') { throw 'The gallery home page was not deployed.' }
101101
Write-Host "Verified $baseUrl at commit $env:EXPECTED_COMMIT with $($marker.sampleCount) samples."
102102
exit 0
103103
} catch {

0 commit comments

Comments
 (0)