From fc7e634395f144491e6d2dc08cb5059adbb4b1fc Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 23 Nov 2022 15:27:48 -0500 Subject: ci/release: Use GITHUB_REF_NAME instead of GITHUB_REF This is a nice quality of life improvement. Closes #2358 --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3441972b..7903d9e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,10 +36,7 @@ jobs: shell: bash if: env.RG_VERSION == '' run: | - # Apparently, this is the right way to get a tag name. Really? - # - # See: https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027 - echo "RG_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + echo "RG_VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV echo "version is: ${{ env.RG_VERSION }}" - name: Create GitHub release env: -- cgit v1.2.3