Skip to content

Commit 2f9cc68

Browse files
committed
fix(ci): wait for docs readiness and retain attribution history
1 parent c28c9f3 commit 2f9cc68

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

‎.github/workflows/docs-negotiation.yml‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ jobs:
178178
- name: Checkout code
179179
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
180180
with:
181-
fetch-depth: 2
181+
fetch-depth: 0
182+
filter: blob:none
182183
- name: Setup Bun
183184
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
184185
with:
@@ -404,6 +405,20 @@ jobs:
404405
exit "$status"
405406
}
406407
trap 'finish "$?"' EXIT
408+
for attempt in $(seq 1 60); do
409+
if ! kill -0 "$DOCS_SERVER_PID" 2>/dev/null; then
410+
echo '::error::Documentation server exited before becoming ready.'
411+
exit 1
412+
fi
413+
if curl -fsS --max-time 2 "$DOCS_E2E_BASE_URL/introduction" -o /dev/null; then
414+
break
415+
fi
416+
if [ "$attempt" -eq 60 ]; then
417+
echo '::error::Documentation server did not become ready.'
418+
exit 1
419+
fi
420+
sleep 1
421+
done
407422
STATUS=0
408423
case "$DOCS_ACCEPTANCE_GROUP" in
409424
http)

0 commit comments

Comments
 (0)