mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 16:56:33 +00:00
fix(ci): wait for GitHub CDN before OS bundle auto-import (504 race)
This commit is contained in:
parent
a1727547df
commit
d4ac406f58
1 changed files with 8 additions and 1 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
|
@ -335,11 +335,18 @@ jobs:
|
|||
BF_AUTOIMPORT_API_KEY: ${{ secrets.BF_AUTOIMPORT_API_KEY }}
|
||||
run: |
|
||||
set -e
|
||||
# Wait for GitHub CDN to propagate the release asset.
|
||||
sleep 15
|
||||
tag="${{ inputs.tag }}"
|
||||
repo="${{ github.repository }}"
|
||||
# Direct GH release asset URL — server downloads from here.
|
||||
asset_name="$(basename "${{ steps.raucb.outputs.bundle-path }}")"
|
||||
asset_url="https://github.com/${repo}/releases/download/${tag}/${asset_name}"
|
||||
# Verify asset is reachable before telling the server to download it.
|
||||
for i in 1 2 3; do
|
||||
if curl -sSf -o /dev/null -I "$asset_url" 2>/dev/null; then break; fi
|
||||
echo "Asset not ready yet, retry $i..."
|
||||
sleep 10
|
||||
done
|
||||
payload="$(jq -nc \
|
||||
--arg v "${{ inputs.version }}" \
|
||||
--arg c "${{ inputs.channel }}" \
|
||||
|
|
|
|||
Loading…
Reference in a new issue