Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.
Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git
Synced Nov 25, 09:15 UTC
Pace the crates.io publish-check loop at one request per second
crates.io caps the API at roughly one request a second and answers further requests with 429 or 403. The loop fired all 14 checks back to back, so a rate-limited response could come back as neither 404 nor 200 and the "404 = unpublished" note would read it as published. A one-second sleep between requests keeps each result meaningful. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si> Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>
Seto Elkahfi committed
Nov 17, 2026 at 23:47 UTC
16378972d2b5b5c6968e421a06f847171a1fd24c
1 file changed
+2
-1
.agents/skills/ascapi-release/SKILL.md
+2
-1
@@ -214,7 +214,8 @@ gh run watch <run-id>
214
curl -sS -o /dev/null -w "%{http_code} smbcloud-ascapi-$c\n" \
215
-H 'User-Agent: smbcloudXYZ/smbcloud-ascapi release-check' \
216
"https://crates.io/api/v1/crates/smbcloud-ascapi-$c"
217
- done # 404 = still unpublished, needs the manual bootstrap
217
+ sleep 1 # crates.io caps the API at 1 req/s; without this a 429/403 reads as neither 404 nor 200
218
+ done # 404 = still unpublished, needs the manual bootstrap; 200 = published
219
```
220
- If a trusted publisher names an environment, it must be `crates-io`, which
221
is the environment the `publish` job runs in.