mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: retry host
This commit is contained in:
1 parent
893bfa8393
commit
3de0c40ce3
1 file changed
+12
-6
@@ -29,18 +29,24 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: oven-sh/setup-bun@v1
|
- uses: oven-sh/setup-bun@v1
|
||||||
# with:
|
|
||||||
# bun-version: 1.1.33
|
|
||||||
|
|
||||||
- name: Download release assets
|
- name: Download release assets
|
||||||
run: |
|
run: |
|
||||||
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
|
until DOWNLOAD_URL=$(curl -s https://api.github.com/repos/blitzkit/blitzkit/releases/latest \
|
||||||
| grep "browser_download_url.*bot.zip" \
|
| grep "browser_download_url.*bot.zip" \
|
||||||
| cut -d : -f 2,3 \
|
| cut -d : -f 2,3 \
|
||||||
| tr -d \")
|
| tr -d \"); do
|
||||||
curl -L -o bot.zip $DOWNLOAD_URL
|
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
|
||||||
|
done
|
||||||
|
|
||||||
mkdir -p dist/bot
|
mkdir -p dist/bot
|
||||||
unzip bot.zip -d 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