Skip to content

Commit 3abef8b

Browse files
author
Jelmer Bot
committed
fix tag parsing
1 parent 207119c commit 3abef8b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/Publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ jobs:
4242
id: version
4343
run: |
4444
TAG=${{ github.ref }}
45-
VERSION=${TAG#v}
46-
echo "::set-output name=version::$VERSION"
45+
VERSION=${TAG#refs/tags/v}
46+
echo "version=$VERSION" >> $GITHUB_OUTPUT
47+
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
4748
4849
- name: Move files to dist
4950
run: |
@@ -60,8 +61,8 @@ jobs:
6061
draft: false
6162
prerelease: false
6263
release_name: "Version ${{ steps.version.outputs.version }}"
63-
tag_name: ${{ github.ref }}
64-
body: "**Full Changelog**: https://github.com/vda-lab/multi_mst/commits/${{ github.ref }}"
64+
tag_name: ${{ steps.version.outputs.tag }}
65+
body: "**Full Changelog**: https://github.com/vda-lab/multi_mst/commits/${{ steps.version.outputs.tag }}"
6566

6667
- name: Upload source distribution
6768
uses: actions/upload-release-asset@v1

0 commit comments

Comments
 (0)