Skip to content

Commit

Permalink
Fix generation of release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
tdg5 committed Jul 4, 2024
1 parent 5a47ea9 commit 5bc8127
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: 'Release version'
required: true
default: '1.2.3'
previousVersion:
description: 'Previous release version (used for release notes)'
required: true
default: '1.2.2'

jobs:
test-and-build-and-publish-and-release:
Expand Down Expand Up @@ -83,13 +87,16 @@ jobs:
- name: Create and push tag for published version
env:
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_ACTIONS }}
PREVIOUS_RELEASE_NAME: v${{ github.event.inputs.previousVersion }}
RELEASE_NAME: v${{ github.event.inputs.version }}
run: |
git tag -m "$RELEASE_NAME" "$RELEASE_NAME"
git push origin "$RELEASE_NAME"
gh release create \
--generate-notes \
--notes-start-tag "$PREVIOUS_RELEASE_NAME" \
--target "$GITHUB_REF" \
--title "$RELEASE_NAME" \
--verify-tag \
"$RELEASE_NAME"

0 comments on commit 5bc8127

Please sign in to comment.