From 7cb19b3f5bf0a5dcee0e8444b920e01e7d4e7fae Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 3 Sep 2019 21:03:10 +0900 Subject: Roughly retry choco install commands to deal with random failures: https://github.com/ruby/ruby/runs/210617845 --- .github/workflows/windows.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 3987153ae3..cd7b98489f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -31,7 +31,12 @@ jobs: env: dependencies: openssl readline zlib - name: Install libraries with chocolatey - run: choco install winflexbison3 + run: | + choco install winflexbison3 || ( + sleep 4 && choco install winflexbison3 + ) || ( + sleep 25 && choco install winflexbison3 + ) # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - name: Checkout ruby/ruby run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard ${{ github.sha }} -- cgit v1.2.3