We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c49fb6 commit 1995860Copy full SHA for 1995860
.github/workflows/CI.yml
@@ -109,8 +109,10 @@ jobs:
109
110
- name: Verify tag version matches Cargo.toml version
111
run: |
112
- CARGO_VERSION=$(cargo pkgid | cut -d# -f2)
+ CARGO_VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2)
113
TAG_VERSION=${GITHUB_REF#refs/tags/v}
114
+ echo "CARGO_VERSION: $CARGO_VERSION"
115
+ echo "TAG_VERSION: $TAG_VERSION"
116
if [ "$CARGO_VERSION" != "$TAG_VERSION" ]; then
117
echo "Error: Git tag $TAG_VERSION doesn't match Cargo.toml version $CARGO_VERSION"
118
exit 1
0 commit comments