From 694cbf23f581d576e6b635f3714e3ebcccf4c6d4 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 30 May 2021 14:10:28 -0700 Subject: [PATCH] Update release notes and set release tag --- .github/workflows/build.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dc6b808..b7024d9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -41,9 +41,11 @@ jobs: - name: Prepare Release Notes run: | - echo "This image was prepared with the following channel configuration:\n\n```\n" > release-notes.md + export RELEASE_TAG=$(date +"%Y%m%d%H%M") + echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV + echo "# Guix Installer v$RELEASE_TAG\r\nThis image was prepared with the following channel configuration:\r\n\r\n\`\`\`\r\n" > release-notes.md guix describe -f channels >> release-notes.md - echo "\n```" >> release-notes.md + echo "\r\n\`\`\`" >> release-notes.md # - uses: actions/upload-artifact@v2 # with: @@ -54,6 +56,7 @@ jobs: uses: softprops/action-gh-release@v1 with: body_path: release-notes.md + tag: ${{ env.RELEASE_TAG }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: SystemCrafters/guix-installer