fix(ci): improve version extraction (#1336)
* fix(ci): right use of grep * fix(ci): remove unnecessary `head` command
This commit is contained in:
parent
d795d81fbf
commit
ce01989f7c
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: "Extract version"
|
||||
id: "version"
|
||||
run: |
|
||||
ESPANSO_VERSION=$(cat espanso/Cargo.toml | grep version | head -1 | awk -F '"' '{ print $2 }')
|
||||
ESPANSO_VERSION=$(grep '^version' espanso/Cargo.toml | awk -F '"' '{ print $2 }')
|
||||
echo version: $ESPANSO_VERSION
|
||||
echo "::set-output name=version::v$ESPANSO_VERSION"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user