fix(ci): right use of grep

This commit is contained in:
Andrea Giovine 2022-08-14 14:08:16 +02:00 committed by GitHub
parent 2ea452bf61
commit a66f6df6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 | head -1 | awk -F '"' '{ print $2 }')
echo version: $ESPANSO_VERSION
echo "::set-output name=version::v$ESPANSO_VERSION"