Skip to content

Commit 08ebb22

Browse files
committed
fix(ci): add User-Agent header to crates.io API request
The crates.io API requires a User-Agent header for all requests. Without it, curl was silently failing, causing the semver check to be incorrectly skipped even though the crate is published.
1 parent 6466665 commit 08ebb22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
- name: Check semver compatibility
4343
run: |
4444
# Skip semver check if this is the first release (crate not yet on crates.io)
45-
if curl -sf "https://crates.io/api/v1/crates/semioscan" | grep -q '"name":"semioscan"'; then
45+
# Note: crates.io API requires User-Agent header
46+
if curl -sfA "semioscan-ci (https://github.com/semiotic-ai/semioscan)" "https://crates.io/api/v1/crates/semioscan" | grep -q '"name":"semioscan"'; then
4647
cargo semver-checks check-release
4748
else
4849
echo "Skipping semver check: semioscan not yet published to crates.io"

0 commit comments

Comments
 (0)