ci: fix incorrect selection of version (#10789)

This commit is contained in:
Daniel Hofstetter
2026-02-07 16:44:32 +01:00
committed by GitHub
parent fafa77588b
commit 323dfb7820
+1 -1
View File
@@ -42,7 +42,7 @@ jobs:
- name: Get current version from Cargo.toml
id: version
run: |
VERSION=$(awk '/\[workspace\.package\]/{flag=1; next} flag && /version = /{gsub(/.*= "/, ""); gsub(/".*/, ""); print; exit}' Cargo.toml)
VERSION=$(awk '/\[workspace\.package\]/{flag=1; next} flag && /^version = /{gsub(/.*= "/, ""); gsub(/".*/, ""); print; exit}' Cargo.toml)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Detected version: $VERSION"