Skip to content

Commit a00f239

Browse files
committed
fix: ensure Info-ZIP download errors are fatal for retry
PowerShell doesn't stop on errors by default, so the retry action didn't detect the failed Invoke-WebRequest. Add $ErrorActionPreference = 'Stop' so failures are properly propagated and retried. Signed-off-by: Thomas Hallgren <thomas@tada.se>
1 parent f35ec09 commit a00f239

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/actions/install-dependencies/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ runs:
5353
timeout_minutes: 1
5454
shell: pwsh
5555
command: |
56+
$ErrorActionPreference = 'Stop'
5657
# Download Info-ZIP (Git for Windows only has unzip, not zip)
5758
Invoke-WebRequest -Uri "https://www.willus.com/archive/zip64/infozip_binaries_win32.zip" -OutFile infozip.zip
5859
Expand-Archive -Path infozip.zip -DestinationPath C:\infozip

0 commit comments

Comments
 (0)