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