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
6b9fd1d392
commit
8afafdeece
1 file changed
+11
-11
@@ -32,17 +32,17 @@ jobs:
|
||||
|
||||
- name: Download release assets
|
||||
run: |
|
||||
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 \"); 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
|
||||
while true; do
|
||||
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 \")
|
||||
if curl -fL -o bot.zip "$DOWNLOAD_URL"; then
|
||||
break
|
||||
else
|
||||
echo "Download failed, retrying in 5s..."
|
||||
sleep 5
|
||||
fi
|
||||
done
|
||||
|
||||
mkdir -p dist/bot
|
||||
|
||||
Reference in new issue
Block a user