From 9c7468d36f4147443f2bcea534ad1775b3a7abef Mon Sep 17 00:00:00 2001 From: Harmanpreet Kaur Date: Fri, 28 Nov 2025 14:47:30 +0530 Subject: [PATCH] Allow post deployment script to continue on error --- .github/workflows/CI.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 57c26bb6..34b06bc2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -347,6 +347,7 @@ jobs: fi - name: Run Post Deployment Script + continue-on-error: true shell: pwsh run: | Write-Host "Running post deployment script to upload files..." @@ -357,13 +358,11 @@ jobs: if ($LASTEXITCODE -eq $null -or $LASTEXITCODE -eq 0) { Write-Host "✅ Post deployment script completed successfully." } else { - Write-Host "❌ Post deployment script failed with exit code: $LASTEXITCODE" - exit 1 + Write-Host "⚠️ Post deployment script failed with exit code: $LASTEXITCODE, but pipeline will continue." } } catch { - Write-Host "❌ Post deployment script failed with error: $($_.Exception.Message)" - exit 1 + Write-Host "⚠️ Post deployment script failed with error: $($_.Exception.Message), but pipeline will continue." } - name: Logout from Azure