mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
Update host-bot.yml
This commit is contained in:
1 parent
02ce6ba8d9
commit
c7a7bbb809
1 file changed
+8
-19
@@ -30,25 +30,14 @@ jobs:
|
||||
steps:
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
|
||||
- name: Download release assets
|
||||
run: |
|
||||
while true; do
|
||||
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
|
||||
| jq -r '.assets[] | select(.name | endswith("bot.zip")) | .browser_download_url')
|
||||
|
||||
if [[ -n "$DOWNLOAD_URL" ]]; then
|
||||
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
|
||||
- name: Download release assets
|
||||
run: |
|
||||
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
|
||||
mkdir -p dist/bot
|
||||
unzip bot.zip -d dist/bot
|
||||
|
||||
- name: Install sharp
|
||||
|
||||
Reference in new issue
Block a user