Update release.yml

This commit is contained in:
rustmailer
2025-12-29 12:37:51 +08:00
parent 558ea2f9b0
commit 2887b5d16d
+1 -1
View File
@@ -39,7 +39,7 @@ jobs:
run: |
TAG_VERSION="${GITHUB_REF_NAME}"
CARGO_VERSION=$(grep '^version\s*=' Cargo.toml | head -n1 | sed -E 's/version\s*=\s*"([^"]+)"/\1/')
CARGO_VERSION=$(grep '^version' Cargo.toml | head -n1 | awk -F'[ "]+' '{print $2}')
echo "Git tag version: $TAG_VERSION"
echo "Cargo.toml version: $CARGO_VERSION"