File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments