Repository navigation
Commit 8ef3856
committed
ci: treat a too-early Context7 refresh as a skip
The first run of the refresh workflow failed. curl timed out after 60
seconds with no response, and later calls returned HTTP 400
{"error":"too-early","message":"... Minimum 10 days required between
updates."}. Context7 limits how often one library refreshes, so the
workflow failed on most pushes to main.
Allow 180 seconds for the response, print the body, and end with a
workflow notice when Context7 answers too-early. Any other non-200
answer still fails the job. Against the live API, the old script
exited 56 on the too-early answer and the new script exits 0 with the
notice.1 parent f993409 commit 8ef3856
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments