fix: add --ignore-content-length and -k to curl
Some checks failed
Deploy to Server / deploy (push) Failing after 18s

This commit is contained in:
爽哒哒
2026-03-21 02:46:52 +08:00
parent 0f3a27234d
commit fcb27bf870

View File

@@ -33,7 +33,7 @@ jobs:
DOWNLOAD_OK=false
for i in 1 2 3; do
echo "第 $i 次尝试下载代码包..."
curl -L --http1.1 --retry 2 --retry-delay 3 -o /tmp/scoring.tar.gz "$ARCHIVE_URL"
curl -L --http1.1 -k --ignore-content-length -o /tmp/scoring.tar.gz "$ARCHIVE_URL" || true
FILE_SIZE=$(stat -c%s /tmp/scoring.tar.gz 2>/dev/null || echo 0)
echo "下载文件大小: $FILE_SIZE bytes"
if [ "$FILE_SIZE" -gt 10240 ] && tar -tzf /tmp/scoring.tar.gz > /dev/null 2>&1; then