From f441b621bab44bb8b9c21d478d205f1ed0342155 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Wed, 18 Nov 2020 11:09:29 +0800 Subject: [PATCH] CI: remove "refs/tags/" from release name --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5314ffd2..800d4aba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,12 +33,16 @@ jobs: - run: git fetch origin ${{ github.ref }} - run: git for-each-ref ${{ github.ref }} --format="%(contents)" > body + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Create Release uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: Release ${{ github.ref }} + name: Release ${{ steps.get_version.outputs.VERSION }} body_path: body files: | dist-pkg/flood-linux