Skip to content

Commit

Permalink
Add full changelog to the bottom of release bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
celynw committed Jan 29, 2024
1 parent cfa53e7 commit 5255e6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ jobs:
id: extract_changelog
run: |
VERSION=${{ steps.get_version.outputs.VERSION }}
PREVIOUS_VERSION=$(git tag | sort -rV | sed -n '2p')
CHANGELOG=$(awk -v version="$VERSION" '/^## /{p=0} $0 ~ "^## " version{p=1} p' CHANGELOG.md)
echo ::set-output name=CHANGELOG::"$CHANGELOG"
echo ::set-output name=PREVIOUS_VERSION::"$PREVIOUS_VERSION"
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand All @@ -88,6 +90,8 @@ jobs:
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
body: ${{ steps.extract_changelog.outputs.CHANGELOG }}
body: |
${{ steps.extract_changelog.outputs.CHANGELOG }}
**Full Changelog**: https://github.com/celynw/kellog/compare/${{ steps.extract_changelog.outputs.PREVIOUS_VERSION }}...${{ steps.get_version.outputs.VERSION }}"
draft: true
prerelease: false

0 comments on commit 5255e6a

Please sign in to comment.