From c0c92cb04806ae76c1600c3605391804931ce0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Sat, 16 May 2026 10:06:23 +0800 Subject: [PATCH] ci(build): honor console asset download fallback (#2980) --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 349bb5062..f88e126aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -234,8 +234,7 @@ jobs: run: | mkdir -p ./rustfs/static if [[ "${{ matrix.platform }}" == "windows" ]]; then - curl.exe -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" -o console.zip --retry 3 --retry-delay 5 --max-time 300 - if [[ $? -eq 0 ]]; then + if curl.exe --fail -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" -o console.zip --retry 3 --retry-delay 5 --max-time 300; then unzip -o console.zip -d ./rustfs/static rm console.zip else @@ -244,9 +243,8 @@ jobs: fi else chmod +w ./rustfs/static/LICENSE || true - curl -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" \ - -o console.zip --retry 3 --retry-delay 5 --max-time 300 - if [[ $? -eq 0 ]]; then + if curl --fail -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" \ + -o console.zip --retry 3 --retry-delay 5 --max-time 300; then unzip -o console.zip -d ./rustfs/static rm console.zip else