From bb4fa39d123e360e1a7ff94e7be2a537b89bad6b Mon Sep 17 00:00:00 2001 From: Jett <55758076+Jettford@users.noreply.github.com> Date: Tue, 9 May 2023 23:45:33 +0100 Subject: [PATCH] Update publishing.yml --- .github/workflows/publishing.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index 72d6b36a..ed18b92d 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -54,15 +54,24 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Take a gander at versions.txt to get updated information + run: | + IFS=" - " read -ra PARTS <<< "$(head -n 1 versions.txt)" + echo "VERSION=${PARTS[0]}" >> $GITHUB_ENV + echo "DESCRIPTION=${PARTS[1]}" >> $GITHUB_ENV + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v0.0.0-${{ github.run_number }} - release_name: Release v0.0.0-${{ github.run_number }} - body: Draft release for version v0.0.0-${{ github.run_number }} + tag_name: v${{ env.VERSION }} + release_name: Release v${{ env.VERSION }} + body: Draft release for version v${{ env.VERSION }} \n ${{ env.DESCRIPTION }} draft: true - name: Download all workflow run artifacts