From d9cd3a094a2e4045c9acebf4c16a670bba6121ee Mon Sep 17 00:00:00 2001 From: Kuba Wieczorek Date: Mon, 15 Jul 2024 18:19:16 +0100 Subject: [PATCH] [VAULT-28666] Retry staticcheck download on failure in GitHub Actions (GHA) (#27781) --- .github/actions/set-up-staticcheck/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/set-up-staticcheck/action.yml b/.github/actions/set-up-staticcheck/action.yml index cce079618f..efd253ad05 100644 --- a/.github/actions/set-up-staticcheck/action.yml +++ b/.github/actions/set-up-staticcheck/action.yml @@ -57,7 +57,7 @@ runs: fi mkdir -p tmp - gh release download "$VERSION" -p "staticcheck_${OS}_${ARCH}.tar.gz" -O tmp/staticcheck.tgz -R dominikh/go-tools + ./.github/scripts/retry-command.sh gh release download "$VERSION" -p "staticcheck_${OS}_${ARCH}.tar.gz" -O tmp/staticcheck.tgz -R dominikh/go-tools pushd tmp && tar -xvf staticcheck.tgz && popd mv tmp/staticcheck/staticcheck "$DESTINATION" rm -rf tmp