fix: retry host

This commit is contained in:
TrèsAbhi committed 2025-07-11 12:27:57 -05:00
1 parent 893bfa8393
commit 3de0c40ce3
1 file changed
+12 -6
+12 -6
View File
@@ -29,18 +29,24 @@ jobs:
steps:
- uses: oven-sh/setup-bun@v1
# with:
# bun-version: 1.1.33
- name: Download release assets
run: |
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
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 \")
curl -L -o bot.zip $DOWNLOAD_URL
| 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
done
mkdir -p dist/bot
unzip bot.zip -d dist/bot
unzip -o bot.zip -d dist/bot
- name: Install sharp
run: bun init -y && bun add sharp