mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
ci/release: Use GITHUB_REF_NAME instead of GITHUB_REF
This is a nice quality of life improvement. Closes #2358
This commit is contained in:
parent
c9584b035b
commit
fc7e634395
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -36,10 +36,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
if: env.RG_VERSION == ''
|
if: env.RG_VERSION == ''
|
||||||
run: |
|
run: |
|
||||||
# Apparently, this is the right way to get a tag name. Really?
|
echo "RG_VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV
|
||||||
#
|
|
||||||
# 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 "version is: ${{ env.RG_VERSION }}"
|
echo "version is: ${{ env.RG_VERSION }}"
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user