Update host-bot.yml

This commit is contained in:
TrèsAbhi authored and GitHub committed 2025-07-11 18:11:54 -05:00
1 parent 8afafdeece
commit 64ec981496
1 file changed
+10 -10
+10 -10
View File
@@ -34,20 +34,20 @@ jobs:
run: | run: |
while true; do 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
if curl -fL -o bot.zip "$DOWNLOAD_URL"; then if curl -fL -o bot.zip "$DOWNLOAD_URL"; then
break break
else
echo "Download failed, retrying in 5s..."
fi
else else
echo "Download failed, retrying in 5s..." echo "Download URL not found, retrying in 5s..."
sleep 5
fi fi
sleep 5
done done
mkdir -p dist/bot
unzip -o bot.zip -d dist/bot
- name: Install sharp - name: Install sharp
run: bun init -y && bun add sharp run: bun init -y && bun add sharp