From 49e5e3c49656826555295d9327f8ae60ab82de58 Mon Sep 17 00:00:00 2001 From: Andrew Cutler Date: Wed, 31 Jul 2024 11:27:56 +1000 Subject: [PATCH] Update release workflow --- .github/workflows/github-release.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 31e571b..1b7e99e 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -1,11 +1,13 @@ -# Source: https://github.com/panubo/reference-github-actions/blob/master/github-release.yml +# Source: https://github.com/panubo/reference-github-actions/blob/main/github-release.yml +# Description: Create a GitHub release +# LICENSE: MIT License, Copyright (c) 2021-2024 Volt Grid Pty Ltd t/a Panubo + +name: GitHub Release on: push: tags: - - '*' - -name: GitHub Release + - 'v*' jobs: build: @@ -14,9 +16,9 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 0 # Required for git log to work - name: Get Release Notes id: get_release_notes @@ -26,7 +28,7 @@ jobs: NOTES="${NOTES//$'\n'/'%0A'}" NOTES="${NOTES//$'\r'/'%0D'}" echo "NOTES: ${NOTES}" - echo "::set-output name=notes::${NOTES}" + echo "notes=${NOTES}" >> $GITHUB_OUTPUT - name: Create Release id: create_release @@ -41,5 +43,5 @@ jobs: ${{ steps.get_release_notes.outputs.notes }} - draft: true + draft: false prerelease: false