Skip to content

Commit 687b390

Browse files
authored
new workflow for ci changelog (#9)
1 parent 9daf491 commit 687b390

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

.github/workflows/changelog.yaml

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

.github/workflows/changelog.yml

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

0 commit comments

Comments
 (0)