Try to fix versioning

This commit is contained in:
Joel Wachsler 2022-07-10 20:30:33 +00:00
parent e9759dfdd5
commit 0b9c435b76

View File

@ -9,11 +9,13 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Determine version - name: Determine version
id: version id: determine-version
run: cat Cargo.toml | grep version | head -1 | sed 's/version = //' | sed 's/"//g' 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 - uses: Klemensas/action-autotag@stable
with: with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
version: "${{ steps.version.outputs.result }}" version: "${{ steps.determine-version.outputs.VERSION }}"
tag_prefix: "v" tag_prefix: "v"