Commit 6eb4154
ci(release): send User-Agent to crates.io's API
crates.io now returns 403 for API calls without a User-Agent, so
the existing pre-publish "already on crates.io" guard broke: curl -sf
exited non-zero on the 403, the if-then didn't fire, and cargo
publish ran and failed with "crate hm-plugin-protocol@VERSION
already exists" when re-tagging after a partial-success run.
Add -A "harmont-release-ci (github-actions)" to all three guards so
the API returns 200 (exists) or 404 (free) as intended.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0b00b09 commit 6eb4154
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments