fix(ci): fix error in extract version step

This commit is contained in:
Federico Terzi 2021-10-03 15:16:15 +02:00
parent 679e95f952
commit 3b00bf53f3

View File

@ -20,10 +20,13 @@ jobs:
outputs: outputs:
espanso_version: ${{ steps.version.outputs.version }} espanso_version: ${{ steps.version.outputs.version }}
steps: steps:
- uses: actions/checkout@v2
- name: "Extract version" - name: "Extract version"
id: "version" id: "version"
run: | run: |
echo "::set-output name=version::v$(cat espanso/Cargo.toml | grep version | head -1 | awk -F '"' '{ print $2 }')" ESPANSO_VERSION=$(cat espanso/Cargo.toml | grep version | head -1 | awk -F '"' '{ print $2 }')
echo version: $ESPANSO_VERSION
echo "::set-output name=version::v$ESPANSO_VERSION"
windows: windows:
needs: ["extract-version"] needs: ["extract-version"]