mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
fix(ci): retry transient bun install failures
This commit is contained in:
@@ -10,4 +10,15 @@ runs:
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: bun install --frozen-lockfile
|
||||
run: |
|
||||
for attempt in 1 2 3; do
|
||||
if bun install --frozen-lockfile; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ "$attempt" -eq 3 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
delay=$((attempt * 5))
|
||||
echo "::warning::bun install failed; retrying in ${delay}s (attempt $((attempt + 1))/3)"
|
||||
sleep "$delay"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user