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
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- name: "Extract version"
|
- name: "Extract version"
|
||||||
id: "version"
|
id: "version"
|
||||||
run: |
|
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 version: $ESPANSO_VERSION
|
||||||
echo "::set-output name=version::v$ESPANSO_VERSION"
|
echo "::set-output name=version::v$ESPANSO_VERSION"
|
||||||
|
|
||||||
|
@ -302,4 +302,4 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ needs.extract-version.outputs.espanso_version }}" ./scripts/publish_homebrew_version.sh
|
VERSION="${{ needs.extract-version.outputs.espanso_version }}" ./scripts/publish_homebrew_version.sh
|
||||||
|
|
||||||
echo "Cask formula has been published here: "
|
echo "Cask formula has been published here: "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user