We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fef7881 commit 96eb972Copy full SHA for 96eb972
1 file changed
.github/workflows/release.yml
@@ -24,7 +24,7 @@ jobs:
24
CURRENT=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
25
echo "version=$CURRENT" >> "$GITHUB_OUTPUT"
26
# Compare against crates.io instead of git history
27
- PUBLISHED=$(curl -s "https://crates.io/api/v1/crates/$CRATE_NAME" | jq -r '.crate.max_version // "0.0.0"')
+ PUBLISHED=$(curl -s -H "User-Agent: turboquant-ci (github.com/SaschaOnTour/turboquant)" "https://crates.io/api/v1/crates/$CRATE_NAME" | jq -r '.crate.max_version // "0.0.0"')
28
if [ "$PUBLISHED" = "null" ] || [ "$PUBLISHED" = "0.0.0" ] || [ "$CURRENT" != "$PUBLISHED" ]; then
29
echo "changed=true" >> "$GITHUB_OUTPUT"
30
echo "Local $CURRENT vs crates.io $PUBLISHED — publishing"
0 commit comments