Skip to content

Commit 9c7468d

Browse files
author
Harmanpreet Kaur
committed
Allow post deployment script to continue on error
1 parent 2d0be51 commit 9c7468d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ jobs:
347347
fi
348348
349349
- name: Run Post Deployment Script
350+
continue-on-error: true
350351
shell: pwsh
351352
run: |
352353
Write-Host "Running post deployment script to upload files..."
@@ -357,13 +358,11 @@ jobs:
357358
if ($LASTEXITCODE -eq $null -or $LASTEXITCODE -eq 0) {
358359
Write-Host "✅ Post deployment script completed successfully."
359360
} else {
360-
Write-Host "❌ Post deployment script failed with exit code: $LASTEXITCODE"
361-
exit 1
361+
Write-Host "⚠️ Post deployment script failed with exit code: $LASTEXITCODE, but pipeline will continue."
362362
}
363363
}
364364
catch {
365-
Write-Host "❌ Post deployment script failed with error: $($_.Exception.Message)"
366-
exit 1
365+
Write-Host "⚠️ Post deployment script failed with error: $($_.Exception.Message), but pipeline will continue."
367366
}
368367
369368
- name: Logout from Azure

0 commit comments

Comments
 (0)