Grab short version

This commit is contained in:
txtsd 2022-02-18 19:27:15 +05:30
parent e24a183dad
commit 9b7cd029a7
No known key found for this signature in database
GPG Key ID: 000F85679D4B6B53

View File

@ -24,6 +24,10 @@ jobs:
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Grab and store version
run: |
tag_name=$(echo ${{ github.ref }} | grep -oE "[^/]+$")
echo "VERSION=$tag_name" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
@ -31,7 +35,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: PolyMC ${{ github.ref }}
name: PolyMC ${{ env.VERSION }}
draft: true
prerelease: false