Skip to content

Commit 11ea8bc

Browse files
ckyrouaccgwalters
authored andcommitted
ci: Fix crates-release gh action cargo info invocation
Without `--registry crates-io`, `cargo info` will return sucess when the local version matches the query. This forces `cargo info` to only look at the registry. Signed-off-by: ckyrouac <ckyrouac@redhat.com>
1 parent 523f96c commit 11ea8bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/crates-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
manifest="crates/$dir/Cargo.toml"
2323
crate=$(cargo read-manifest --manifest-path "$manifest" | jq -r '.name')
2424
VERSION=$(cargo read-manifest --manifest-path "$manifest" | jq -r '.version')
25-
if cargo info "$crate@$VERSION" > /dev/null 2>&1; then
25+
if cargo info --registry crates-io "$crate@$VERSION" > /dev/null 2>&1; then
2626
echo "$crate@$VERSION is already published, skipping"
2727
else
2828
echo "Publishing $crate@$VERSION..."

0 commit comments

Comments
 (0)