Skip to content

Commit cb4fec1

Browse files
committed
Enrich release messages
Signed-off-by: Rahul Krishna <[email protected]>
1 parent 574308a commit cb4fec1

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ jobs:
4848
- name: Build package
4949
run: uv build
5050

51+
- name: Get version from tag
52+
id: tag_name
53+
run: |
54+
echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
55+
shell: bash
56+
57+
- name: Read Changelog Entry
58+
id: changelog_reader
59+
uses: mindsers/changelog-reader-action@v2
60+
with:
61+
validation_level: warn
62+
version: ${{ steps.tag_name.outputs.current_version }}
63+
path: ./CHANGELOG.md
64+
5165
- name: Build changelog
5266
id: gen_changelog
5367
uses: mikepenz/release-changelog-builder-action@v5
@@ -61,7 +75,16 @@ jobs:
6175
uses: softprops/action-gh-release@v1
6276
with:
6377
files: dist/*
64-
body: ${{ steps.gen_changelog.outputs.changelog }}
78+
body: |
79+
## Release Notes (from CHANGELOG.md)
80+
81+
${{ steps.changelog_reader.outputs.changes }}
82+
83+
---
84+
85+
## Detailed Changes (auto-generated)
86+
87+
${{ steps.gen_changelog.outputs.changelog }}
6588
env:
6689
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6790

0 commit comments

Comments
 (0)