Skip to content

Commit 1742409

Browse files
authored
fix changelog workflow (#10)
1 parent 9daf491 commit 1742409

File tree

2 files changed

+41
-18
lines changed

2 files changed

+41
-18
lines changed

.github/workflows/changelog.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/changelog.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Changelog
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
release:
9+
if: startsWith(github.ref, 'refs/tags/')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Build Changelog
13+
uses: mikepenz/release-changelog-builder-action@v5
14+
with:
15+
mode: "PR"
16+
configurationJson: |
17+
{
18+
"template": "#{{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n#{{UNCATEGORIZED}}\n</details>",
19+
"categories": [
20+
{
21+
"title": "## Feature",
22+
"labels": ["feat", "feature"]
23+
},
24+
{
25+
"title": "## Fix",
26+
"labels": ["fix", "bug","hotfix"]
27+
},
28+
{
29+
"title": "## Other",
30+
"labels": ["chore","refactor","dep"]
31+
}
32+
],
33+
"label_extractor": [
34+
{
35+
"pattern": "^(build|chore|ci|docs|feat|fix|hotfix|perf|refactor|revert|style|test|dep){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
36+
"target": "$1"
37+
}
38+
]
39+
}
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)