ci: decouple update-brew-tap from slow gitea full mirror (#151)
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
🧪 CI / 🧪 Test, Type-Check & Build Validation (push) Has been cancelled
This commit is contained in:
1 parent
6da8d54794
commit
68a858b4b9
1 file changed
+21
-1
@@ -304,7 +304,7 @@ jobs:
|
||||
|
||||
update-brew-tap:
|
||||
name: 🍺 Update Homebrew Tap
|
||||
needs: [build-and-publish-github, publish-gitea]
|
||||
needs: build-and-publish-github
|
||||
if: ${{ !cancelled() && needs.build-and-publish-github.result == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
@@ -327,6 +327,26 @@ jobs:
|
||||
--dir . \
|
||||
--clobber
|
||||
|
||||
- name: Wait for Gitea release asset
|
||||
run: |
|
||||
TAG_NAME="${{ github.event.inputs.tag || github.ref_name }}"
|
||||
ASSET_URL="https://git.ying-qing.cn/gitea/seal-use/releases/download/${TAG_NAME}/seal-use-darwin-arm64.tar.gz"
|
||||
echo "Waiting for Gitea release asset: ${ASSET_URL}..."
|
||||
ready=false
|
||||
for i in $(seq 1 60); do
|
||||
if curl -fsI "$ASSET_URL" >/dev/null 2>&1; then
|
||||
echo "✓ Gitea release asset is reachable (attempt $i)"
|
||||
ready=true
|
||||
break
|
||||
fi
|
||||
echo " Attempt $i: asset not yet reachable, waiting 5s..."
|
||||
sleep 5
|
||||
done
|
||||
if [ "$ready" != "true" ]; then
|
||||
echo "::error::Gitea release asset was not reachable within timeout: ${ASSET_URL}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Update Formula
|
||||
run: |
|
||||
RAW_TAG="${{ github.event.inputs.tag || github.ref_name }}"
|
||||
|
||||
Reference in new issue
Block a user