build: update changelog generation workflow

This commit is contained in:
zhom
2025-06-14 17:33:38 +04:00
parent 545c518a55
commit ec61d51c07
3 changed files with 8 additions and 25 deletions
-25
View File
@@ -1,25 +0,0 @@
name: Generate changelog
on:
release:
types: [created, edited]
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
args: --verbose
env:
OUTPUT: CHANGELOG.md
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"
+7
View File
@@ -149,3 +149,10 @@ jobs:
releaseDraft: false
prerelease: false
args: ${{ matrix.args }}
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]"
file_pattern: CHANGELOG.md
+1
View File
@@ -60,6 +60,7 @@
"sonner",
"sspi",
"staticlib",
"stefanzweifel",
"subdirs",
"swatinem",
"sysinfo",