Skip to content

Commit 56ffec8

Browse files
post dep fix v3
1 parent 0daefc5 commit 56ffec8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/job-deploy-windows.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@ jobs:
204204
"RESOURCE_GROUP_NAME=$RESOURCE_GROUP_NAME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
205205
206206
$WEB_APP_URL = $DEPLOY_OUTPUT.WEB_APP_URL
207+
Write-Host "WEB_APP_URL extracted: $WEB_APP_URL"
208+
209+
if ([string]::IsNullOrWhiteSpace($WEB_APP_URL)) {
210+
Write-Host "❌ Error: WEB_APP_URL is empty or not found in deployment output."
211+
Write-Host "Available output keys: $($DEPLOY_OUTPUT.PSObject.Properties.Name -join ', ')"
212+
exit 1
213+
}
214+
207215
"WEB_APPURL=$WEB_APP_URL" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
208216
"WEB_APPURL=$WEB_APP_URL" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
209217
@@ -212,6 +220,13 @@ jobs:
212220
shell: pwsh
213221
run: |
214222
Write-Host "Running post deployment script to upload files..."
223+
Write-Host "WEB_APPURL value: $env:WEB_APPURL"
224+
225+
if ([string]::IsNullOrWhiteSpace($env:WEB_APPURL)) {
226+
Write-Host "❌ Error: WEB_APPURL environment variable is empty."
227+
exit 1
228+
}
229+
215230
cd Deployment
216231
try {
217232
.\uploadfiles.ps1 -EndpointUrl $env:WEB_APPURL

0 commit comments

Comments
 (0)