From 5c57e326f8192b22959c079bc099ff1f2e8990f4 Mon Sep 17 00:00:00 2001 From: Bruno Date: Mon, 2 Nov 2020 11:49:02 +0100 Subject: [PATCH] Use short tag name in release Instead of `refs/tags/mytag` uses just `mytag` --- .github/workflows/extension.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/extension.yml b/.github/workflows/extension.yml index cc8503c..b4490ac 100644 --- a/.github/workflows/extension.yml +++ b/.github/workflows/extension.yml @@ -25,14 +25,18 @@ jobs: uses: lannonbr/vsce-action@master with: args: "package" + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + shell: bash - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ steps.get_version.outputs.VERSION }} + release_name: Release ${{ steps.get_version.outputs.VERSION }} draft: false prerelease: false - name: Upload Release Asset @@ -40,4 +44,4 @@ jobs: with: files: 'exasol-driver-*.vsix' repo-token: ${{ secrets.GITHUB_TOKEN }} - release-tag: ${{ github.ref }} + release-tag: ${{ steps.get_version.outputs.VERSION }}