From 317b65f2855bed7dfcc0514eb4569713c0634715 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Sun, 5 Sep 2021 15:05:09 +0100 Subject: [PATCH] [CI] Increase retries to 20 with 5s delay after each try --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 380ebea1b..42b4205b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -175,9 +175,10 @@ jobs: - name: Download InstallBuilder run: | $tries = 0 - while ($tries -lt 5 -and -not (Test-Path "$HOME\installbuilder.exe")) { + while ($tries -lt 20 -and -not (Test-Path "$HOME\installbuilder.exe")) { $tries++ curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe + sleep -s 5 } start -wait "$HOME\installbuilder.exe" @("--mode", "unattended", "--prefix", "$HOME\installbuilder") echo >$HOME\license.xml @" @@ -261,9 +262,10 @@ jobs: - name: Download InstallBuilder run: | $tries = 0 - while ($tries -lt 5 -and -not (Test-Path "$HOME\installbuilder.exe")) { + while ($tries -lt 20 -and -not (Test-Path "$HOME\installbuilder.exe")) { $tries++ curl.exe --output "$HOME\installbuilder.exe" -L --url ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe + sleep -s 5 } start -wait "$HOME\installbuilder.exe" @("--mode", "unattended", "--prefix", "$HOME\installbuilder") echo >$HOME\license.xml @"