summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames McKinney <26463+jpmckinney@users.noreply.github.com>2022-11-23 15:27:48 -0500
committerAndrew Gallant <jamslam@gmail.com>2023-07-08 18:52:42 -0400
commitfc7e634395f144491e6d2dc08cb5059adbb4b1fc (patch)
tree85dff5d65fb51b4cc6cfbcf24763aa7fe870e566
parentc9584b035b19244e370a50fd872a3ae2039e2931 (diff)
ci/release: Use GITHUB_REF_NAME instead of GITHUB_REF
This is a nice quality of life improvement. Closes #2358
-rw-r--r--.github/workflows/release.yml5
1 files changed, 1 insertions, 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: