We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2cd290 commit 4dc245fCopy full SHA for 4dc245f
.github/workflows/release.yml
@@ -41,6 +41,16 @@ jobs:
41
with:
42
ref: ${{ steps.get_version.outputs.tag_name }}
43
44
+ - name: Verify Cargo.toml version matches tag
45
+ run: |
46
+ CARGO_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
47
+ TAG_VERSION=${{ steps.get_version.outputs.version }}
48
+ if [ "$CARGO_VERSION" != "$TAG_VERSION" ]; then
49
+ echo "::error::Version mismatch! Cargo.toml has $CARGO_VERSION but tag is $TAG_VERSION"
50
+ exit 1
51
+ fi
52
+ echo "Version check passed: $CARGO_VERSION"
53
+
54
- name: Create Release
55
id: create_release
56
uses: softprops/action-gh-release@v2
0 commit comments