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
6b9fd1d392
commit
8afafdeece
1 file changed
+11
-11
@@ -32,17 +32,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Download release assets
|
- name: Download release assets
|
||||||
run: |
|
run: |
|
||||||
until DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
|
while true; do
|
||||||
| grep "browser_download_url.*bot.zip" \
|
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
|
||||||
| cut -d : -f 2,3 \
|
| grep "browser_download_url.*bot.zip" \
|
||||||
| tr -d \"); do
|
| cut -d : -f 2,3 \
|
||||||
echo "Retrying in 5s..."; sleep 5
|
| tr -d \")
|
||||||
done
|
if curl -fL -o bot.zip "$DOWNLOAD_URL"; then
|
||||||
|
break
|
||||||
echo "Got URL: $DOWNLOAD_URL"
|
else
|
||||||
|
echo "Download failed, retrying in 5s..."
|
||||||
until curl -L -o bot.zip "$DOWNLOAD_URL"; do
|
sleep 5
|
||||||
echo "Download failed, retrying in 5s..."; sleep 5
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p dist/bot
|
mkdir -p dist/bot
|
||||||
|
|||||||
Reference in new issue
Block a user