Update host-bot.yml

This commit is contained in:
TrèsAbhi authored and GitHub committed 2025-07-15 09:41:44 -05:00
1 parent 02ce6ba8d9
commit c7a7bbb809
1 file changed
+5 -16
+5 -16
View File
@@ -32,22 +32,11 @@ jobs:
- name: Download release assets - name: Download release assets
run: | run: |
while true; do DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \ | grep "browser_download_url.*bot.zip" \
| jq -r '.assets[] | select(.name | endswith("bot.zip")) | .browser_download_url') | cut -d : -f 2,3 \
| tr -d \")
if [[ -n "$DOWNLOAD_URL" ]]; then curl -L -o bot.zip $DOWNLOAD_URL
if curl -fL -o bot.zip "$DOWNLOAD_URL"; then
break
else
echo "Download failed, retrying in 5s..."
fi
else
echo "Download URL not found, retrying in 5s..."
fi
sleep 5
done
mkdir -p dist/bot mkdir -p dist/bot
unzip bot.zip -d dist/bot unzip bot.zip -d dist/bot