Skip to content

Commit 3a4f8e2

Browse files
committed
ci: add automatic changelog generation to release workflow
1 parent 6036890 commit 3a4f8e2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
name: Create Release from Tag
1+
name: Create Release from Tag with Changelog
2+
3+
permissions:
4+
contents: write
25

36
on:
47
push:
@@ -11,5 +14,15 @@ jobs:
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Generate Changelog
20+
id: changelog
21+
uses: metcalfc/changelog-generator@v4.5.0
1422
- name: Release
1523
uses: softprops/action-gh-release@v2
24+
with:
25+
body: |
26+
## Changes in this Release
27+
${{ steps.changelog.outputs.changelog }}
28+
generate_release_notes: true

0 commit comments

Comments
 (0)