feature: add changelog builder
Some checks failed
release / release (push) Failing after 18s

This commit is contained in:
Tim Basten
2026-02-06 11:32:23 +08:00
parent 873a4c5237
commit 22e64b6dec

View File

@@ -14,11 +14,44 @@ jobs:
with:
fetch-depth: 0
- name: Build Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v6
with:
mode: "COMMIT"
configurationJson: |
{
"template": "#{{CHANGELOG}}",
"categories": [
{
"title": "## Feature",
"labels": ["feat", "feature"]
},
{
"title": "## Fix",
"labels": ["fix", "bug"]
},
{
"title": "## Other",
"labels": []
}
],
"label_extractor": [
{
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"on_property": "title",
"target": "$1"
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Gitea Release
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITEA_TOKEN }}
tag_name: ${{ gitea.ref_name }}
name: ${{ gitea.ref_name }}
body: "Automated release"
body: ${{ steps.changelog.outputs.changelog }}