Skip to content

Commit

Permalink
change get git tag method
Browse files Browse the repository at this point in the history
  • Loading branch information
ttxs69 committed Aug 14, 2022
1 parent 9839053 commit d9bfe0d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ jobs:
upload_url: ${{ steps.release.outputs.upload_url }}
version: ${{ env.VERSION }}
steps:
- name: Get the release version from the tag
shell: bash
if: env.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 "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "version is: ${{ env.VERSION }}"
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: GH Release
id: release
uses: softprops/action-gh-release@v0.1.14
Expand Down

0 comments on commit d9bfe0d

Please sign in to comment.