Skip to content

Commit a47d364

Browse files
committed
fix: ci release package versions
1 parent aacdcdf commit a47d364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Verify version
6767
run: |
6868
TAG_VERSION="${GITHUB_REF#refs/tags/v}"
69-
CARGO_VERSION=$(grep -m1 "version" Cargo.toml | cut -d '"' -f2)
69+
CARGO_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
7070
if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then
7171
echo "Version mismatch: Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)"
7272
exit 1

0 commit comments

Comments
 (0)