Skip to content

Commit 41fbc0b

Browse files
committed
Add automated release notes
1 parent 26a7f1c commit 41fbc0b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,40 @@ jobs:
7070
git tag -a "${{ env.version }}" -m "Release ${{ env.version }}"
7171
git push origin "${{ env.version }}"
7272
73+
- name: Build Changelog
74+
id: github_release
75+
uses: mikepenz/release-changelog-builder-action@v5
76+
with:
77+
mode: "PR"
78+
configurationJson: |
79+
{
80+
"template": "#{{CHANGELOG}}",
81+
"pr_template": "- #{{TITLE}}: ##{{NUMBER}}",
82+
"categories": [
83+
{
84+
"title": "## Feature",
85+
"labels": ["feat", "feature"]
86+
},
87+
{
88+
"title": "## Fix",
89+
"labels": ["fix", "bug"]
90+
},
91+
{
92+
"title": "## Other",
93+
"labels": []
94+
}
95+
],
96+
"label_extractor": [
97+
{
98+
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
99+
"on_property": "title",
100+
"target": "$1"
101+
}
102+
]
103+
}
104+
env:
105+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
73107
- name: Create GitHub release
74108
if: ${{ env.SKIP != 'true' }}
75109
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)