Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmrdavid committed Oct 1, 2024
1 parent 135d176 commit 7ec183f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ param(
[string]$HttpStartPath
)

function Exit-OnError() {
# There appears to be a known problem in GitHub Action's `pwsh` shell preventing it from failing fast on an error:
# https://github.com/actions/runner-images/issues/6668#issuecomment-1364540817
# Therefore, we manually check if there was an error an fail if so.
if (!$LASTEXITCODE.Equals(0)) {exit $LASTEXITCODE}
}

Start-Sleep -Seconds 30

try {
Expand All @@ -21,7 +14,6 @@ try {
Write-Host "Pinging app at $pingUrl to ensure the host is healthy" -ForegroundColor Yellow
Invoke-RestMethod -Method Post -Uri "http://localhost:7071/admin/host/ping"
Write-Host "Host is healthy!" -ForegroundColor Green
Exit-OnError

if ($NoValidation -eq $false) {
# Note that any HTTP protocol errors (e.g. HTTP 4xx or 5xx) will cause an immediate failure
Expand Down

0 comments on commit 7ec183f

Please sign in to comment.