From 9b7cd029a79f42456c0907014737b5cdd62fc657 Mon Sep 17 00:00:00 2001 From: txtsd Date: Fri, 18 Feb 2022 19:27:15 +0530 Subject: Grab short version --- .github/workflows/trigger_builds.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/trigger_builds.yml b/.github/workflows/trigger_builds.yml index 7299ef1a..4a162665 100644 --- a/.github/workflows/trigger_builds.yml +++ b/.github/workflows/trigger_builds.yml @@ -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 -- cgit