Update host-bot.yml

This commit is contained in:
TrèsAbhi authored and GitHub committed 2025-07-11 18:10:46 -05:00
1 parent 6b9fd1d392
commit 8afafdeece
1 file changed
+11 -11
+11 -11
View File
@@ -32,17 +32,17 @@ jobs:
- name: Download release assets
run: |
until DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
| grep "browser_download_url.*bot.zip" \
| cut -d : -f 2,3 \
| tr -d \"); do
echo "Retrying in 5s..."; sleep 5
done
echo "Got URL: $DOWNLOAD_URL"
until curl -L -o bot.zip "$DOWNLOAD_URL"; do
echo "Download failed, retrying in 5s..."; sleep 5
while true; do
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
| grep "browser_download_url.*bot.zip" \
| cut -d : -f 2,3 \
| tr -d \")
if curl -fL -o bot.zip "$DOWNLOAD_URL"; then
break
else
echo "Download failed, retrying in 5s..."
sleep 5
fi
done
mkdir -p dist/bot