Skip to content

Commit 6ef24d8

Browse files
ckyrouaccgwalters
authored andcommitted
ci: Fix bug in crates-release
`cargo read-manifest` is unable to map from crate name -> crate path. So, just loop over crate dirs and read their name and version from the manifest. Signed-off-by: ckyrouac <ckyrouac@redhat.com>
1 parent f6af497 commit 6ef24d8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/crates-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ jobs:
1616
- run: |
1717
# Publish crates if their current version is not already on crates.io.
1818
# Order matters: dependencies must be published first.
19-
CRATES="bootc-internal-utils bootc-internal-mount bootc-internal-blockdev"
19+
CRATES="utils mount blockdev"
2020
21-
for crate in $CRATES; do
22-
VERSION=$(cargo read-manifest -p "$crate" | jq -r '.version')
21+
for dir in $CRATES; do
22+
manifest="crates/$dir/Cargo.toml"
23+
crate=$(cargo read-manifest --manifest-path "$manifest" | jq -r '.name')
24+
VERSION=$(cargo read-manifest --manifest-path "$manifest" | jq -r '.version')
2325
if cargo info "$crate@$VERSION" > /dev/null 2>&1; then
2426
echo "$crate@$VERSION is already published, skipping"
2527
else

0 commit comments

Comments
 (0)