diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30f6b4c..281b6d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" @@ -302,4 +302,4 @@ jobs: run: | VERSION="${{ needs.extract-version.outputs.espanso_version }}" ./scripts/publish_homebrew_version.sh - echo "Cask formula has been published here: " \ No newline at end of file + echo "Cask formula has been published here: "