mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
Update host-bot.yml
This commit is contained in:
1 parent
8afafdeece
commit
64ec981496
1 file changed
+10
-10
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user