Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Feb 23, 2024
1 parent f83a44b commit 1078942
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ jobs:
if [ ${#images[@]} -gt 0 ]; then
for image in "${images[@]}"; do
echo "$image"
curl -o $image "https://down.idc.wiki/Image/realServer-Template/current/qcow2/$image"
curl -m 60 -o $image "https://down.idc.wiki/Image/realServer-Template/current/qcow2/$image"
if [ $? -ne 0 ]; then
sleep 6
curl -m 60 -o $image "https://down.idc.wiki/Image/realServer-Template/current/qcow2/$image"
fi
chmod 777 $image
sleep 1
done
fi
Expand Down

0 comments on commit 1078942

Please sign in to comment.