From a7a89fb680c930b6c848e30cb28dbd0c339c59ed Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 29 Mar 2026 18:11:38 +0900 Subject: [PATCH] fix(ci): retry actionlint release downloads --- .github/workflows/workflow-sanity.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-sanity.yml b/.github/workflows/workflow-sanity.yml index e1a16fe977e..d852d50cd8e 100644 --- a/.github/workflows/workflow-sanity.yml +++ b/.github/workflows/workflow-sanity.yml @@ -60,8 +60,11 @@ jobs: ACTIONLINT_VERSION="1.7.11" archive="actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" base_url="https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}" - curl -sSfL -o "${archive}" "${base_url}/${archive}" - curl -sSfL -o checksums.txt "${base_url}/actionlint_${ACTIONLINT_VERSION}_checksums.txt" + # GitHub release downloads occasionally return transient 5xx responses. + # Retry all curl errors here so workflow-sanity does not fail closed on + # a one-off release edge outage. + curl --retry 5 --retry-delay 2 --retry-all-errors -sSfL -o "${archive}" "${base_url}/${archive}" + curl --retry 5 --retry-delay 2 --retry-all-errors -sSfL -o checksums.txt "${base_url}/actionlint_${ACTIONLINT_VERSION}_checksums.txt" grep " ${archive}\$" checksums.txt | sha256sum -c - tar -xzf "${archive}" actionlint sudo install -m 0755 actionlint /usr/local/bin/actionlint