mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Update host-bot.yml
This commit is contained in:
1 parent
02ce6ba8d9
commit
c7a7bbb809
1 file changed
+5
-16
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user