Skip to content

Commit 5c57e32

Browse files
authored
Use short tag name in release
Instead of `refs/tags/mytag` uses just `mytag`
1 parent f474ad7 commit 5c57e32

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/extension.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@ jobs:
2525
uses: lannonbr/vsce-action@master
2626
with:
2727
args: "package"
28+
- name: Get the version
29+
id: get_version
30+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
31+
shell: bash
2832
- name: Create Release
2933
id: create_release
3034
uses: actions/create-release@v1
3135
env:
3236
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3337
with:
34-
tag_name: ${{ github.ref }}
35-
release_name: Release ${{ github.ref }}
38+
tag_name: ${{ steps.get_version.outputs.VERSION }}
39+
release_name: Release ${{ steps.get_version.outputs.VERSION }}
3640
draft: false
3741
prerelease: false
3842
- name: Upload Release Asset
3943
uses: AButler/upload-release-assets@v2.0
4044
with:
4145
files: 'exasol-driver-*.vsix'
4246
repo-token: ${{ secrets.GITHUB_TOKEN }}
43-
release-tag: ${{ github.ref }}
47+
release-tag: ${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)