[VAULT-28666] Retry staticcheck download on failure in GitHub Actions (GHA) (#27781)

This commit is contained in:
Kuba Wieczorek
2024-07-15 18:19:16 +01:00
committed by GitHub
parent d2116025be
commit d9cd3a094a

View File

@@ -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