Compare commits

..

1 Commits

Author SHA1 Message Date
1f2d64067e feat: check if zip file is valid
Some checks failed
Deploy / deploy (pull_request) Failing after 4s
Build / build (pull_request) Successful in 38s
- test the zip file to ensure its valid
2024-12-30 00:26:21 +11:00

View File

@ -27,7 +27,7 @@ jobs:
echo "Attempting to download plans from ${PLANS_URL}"
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
# Download the file
curl -L -o /workspace/plans.zip "${PLANS_URL}"
curl -L -o /workspace/plans.zip "${PLANS_URL}" --fail --silent
# Validate if it is a valid ZIP
if unzip -t /workspace/plans.zip > /dev/null 2>&1; then
echo "Plans file downloaded and verified successfully."