From c96efaf5a6d089054e5d07956b0eb76cf1fac446 Mon Sep 17 00:00:00 2001 From: Steven van de Graaf Date: Sun, 24 Dec 2023 16:24:00 +0100 Subject: [PATCH] :green_heart: Fix automatic release creation --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e8f2b4..693310f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,9 @@ jobs: - name: Get the library version run: |- echo 'LIBRARY_VERSION='$(grep -oP 'version = "\K[^"]+' $INIT_FILE) >> $GITHUB_ENV + - name: Get the current date + run: |- + echo 'CURRENT_DATE='$(date '+%Y-%m-%d') >> $GITHUB_ENV - name: Increment the patch run: |- echo 'NEW_VERSION='$(echo $CURRENT_VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.) >> $GITHUB_ENV @@ -42,11 +45,11 @@ jobs: - name: Create a GitHub Release uses: softprops/action-gh-release@v1 with: - name: "v$NEW_VERSION" - tag_name: "v$NEW_VERSION" + name: v${{ env.NEW_VERSION }} + tag_name: v${{ env.NEW_VERSION }} body: | - # v$NEW_VERSION ($(date '+%Y-%m-%d')) + # v${{ env.NEW_VERSION }} (${{ env.CURRENT_DATE }}) ## Changes - - Upgraded Font Awesome to version $LIBRARY_VERSION + - Upgraded Font Awesome to version ${{ env.LIBRARY_VERSION }}