We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c9403 commit 87a48aaCopy full SHA for 87a48aa
.github/workflows/publish.yml
@@ -18,7 +18,7 @@ jobs:
18
- name: Check version matches tag
19
run: |
20
TAG_VERSION="${GITHUB_REF_NAME#v}"
21
- CARGO_VERSION=$(grep -m1 '^version =' Cargo.toml | sed 's/.*"\(.*\)".*/\1/')
+ CARGO_VERSION=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "cargo-hyperlight") | .version')
22
if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then
23
echo "Error: Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)"
24
exit 1
0 commit comments