Skip to content

Commit 73626ff

Browse files
committed
[ci] Cygwin Invoke-WebRequest -MaximumRetryCount 3
x-ref: "retry network operations 3 times" cygwin/cygwin-install-action#25
1 parent 069971f commit 73626ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ jobs:
255255
libxml2-devel libsqlite3-devel
256256
libintl-devel
257257
- name: Update
258-
shell: powershell
258+
shell: pwsh
259259
run: |
260260
# (https://github.com/cygwin/cygwin-install-action/blob/master/action.yml)
261-
Invoke-WebRequest https://cygwin.com/setup-x86_64.exe -OutFile C:\setup.exe
261+
Invoke-WebRequest https://cygwin.com/setup-x86_64.exe -OutFile C:\setup.exe -MaximumRetryCount 3
262262
# because setup is a Windows GUI app, make it part of a pipeline to make
263263
# PowerShell wait for it to exit
264264
& C:\setup.exe -qgnO -t | Out-Default

0 commit comments

Comments
 (0)