mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
ci: fix incorrect selection of version (#10789)
This commit is contained in:
committed by
GitHub
parent
fafa77588b
commit
323dfb7820
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user