Skip to content

Commit 11b0cb9

Browse files
committed
Make GitHub Actions fail when download URLs are broken
- Change from WARNING to ERROR when URLs fail validation - Exit with error code 1 to fail the workflow - List all failed URLs for easier debugging - Ensures broken downloads are caught in CI before deployment
1 parent 1e0c070 commit 11b0cb9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,13 @@ jobs:
103103
Write-Host ""
104104
Write-Host "SUMMARY: $successCount/$totalUrls URLs validated successfully"
105105
if($failedUrls.Count -gt 0) {
106-
Write-Host "WARNING - $($failedUrls.Count) URLs failed validation"
107-
Write-Host "Failed URLs may cause installation issues"
106+
Write-Host "ERROR - $($failedUrls.Count) URLs failed validation"
107+
Write-Host "Failed URLs will cause installation issues"
108+
Write-Host "The following URLs need to be fixed:"
109+
foreach($url in $failedUrls) {
110+
Write-Host " - $url"
111+
}
112+
exit 1
108113
} else {
109114
Write-Host "SUCCESS - All URLs are accessible"
110115
}

0 commit comments

Comments
 (0)