your message
Some checks failed
release / release (push) Failing after 5s

This commit is contained in:
Tim Basten
2026-02-06 11:39:23 +08:00
parent 22e64b6dec
commit 307c1bb715
2 changed files with 56 additions and 31 deletions

View File

@@ -14,38 +14,19 @@ jobs:
with:
fetch-depth: 0
- name: Build Changelog
- name: Install go-gitea/changelog
run: |
wget https://github.com/go-gitea/changelog/releases/latest/download/changelog-linux-amd64
chmod +x changelog-linux-amd64
sudo mv changelog-linux-amd64 /usr/local/bin/changelog
- name: Generate 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 }}
run: |
changelog --config changelog.yml > CHANGELOG.md
echo "changelog<<EOF" >> $GITHUB_OUTPUT
cat CHANGELOG.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Gitea Release
uses: akkuman/gitea-release-action@v1

44
changelog.yml Normal file
View File

@@ -0,0 +1,44 @@
repo: go-gitea/gitea
groups:
-
name: BREAKING
labels:
- kind/breaking
-
name: FEATURE
labels:
- kind/feature
-
name: BUGFIXES
labels:
- kind/bug
-
name: ENHANCEMENT
labels:
- kind/enhancement
- kind/refactor
- kind/ui
-
name: SECURITY
labels:
- kind/security
-
name: TESTING
labels:
- kind/testing
-
name: TRANSLATION
labels:
- kind/translation
-
name: BUILD
labels:
- kind/build
- kind/lint
-
name: DOCS
labels:
- kind/docs
-
name: MISC
default: true