diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 7ef616a..93ce281 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -9,11 +9,13 @@ jobs: - uses: actions/checkout@v2 - name: Determine version - id: version - run: cat Cargo.toml | grep version | head -1 | sed 's/version = //' | sed 's/"//g' + id: determine-version + run: | + VERSION=$(cat Cargo.toml | grep version | head -1 | sed 's/version = //' | sed 's/"//g') + Write-Output "::set-output name=VERSION::$VERSION" - uses: Klemensas/action-autotag@stable with: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - version: "${{ steps.version.outputs.result }}" + version: "${{ steps.determine-version.outputs.VERSION }}" tag_prefix: "v" \ No newline at end of file