Skip to content

Commit 9c40111

Browse files
committed
update release action to use generate-changelog
1 parent bba9531 commit 9c40111

File tree

1 file changed

+5
-31
lines changed

1 file changed

+5
-31
lines changed

.github/workflows/release.lib.yaml

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
fetch-depth: 0
2929
submodules: recursive
3030

31+
- name: test-action
32+
run: cd hack/common; git status
3133
- name: Install Task
3234
uses: arduino/setup-task@v2
3335
with:
@@ -85,36 +87,8 @@ jobs:
8587
done
8688
8789
- name: Build Changelog
88-
id: github_release
89-
uses: mikepenz/release-changelog-builder-action@e92187bd633e680ebfdd15961a7c30b2d097e7ad # v5
90-
with:
91-
mode: "PR"
92-
configurationJson: |
93-
{
94-
"template": "#{{CHANGELOG}}",
95-
"pr_template": "- #{{TITLE}}: ##{{NUMBER}}",
96-
"categories": [
97-
{
98-
"title": "## Feature",
99-
"labels": ["feat", "feature"]
100-
},
101-
{
102-
"title": "## Fix",
103-
"labels": ["fix", "bug"]
104-
},
105-
{
106-
"title": "## Other",
107-
"labels": []
108-
}
109-
],
110-
"label_extractor": [
111-
{
112-
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
113-
"on_property": "title",
114-
"target": "$1"
115-
}
116-
]
117-
}
90+
id: github_release
91+
run: task r:generate-changelog
11892
env:
11993
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12094

@@ -124,7 +98,7 @@ jobs:
12498
with:
12599
tag_name: ${{ env.version }}
126100
name: Release ${{ env.version }}
127-
body: ${{steps.github_release.outputs.changelog}}
101+
body: CHANGELOG.md
128102
draft: true
129103
prerelease: false
130104
env:

0 commit comments

Comments
 (0)