Skip to content

Commit 3188e00

Browse files
Add GitCliff workflow to generate changelog
1 parent 080e5e9 commit 3188e00

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/GitCliff.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
jobs:
2+
changelog:
3+
name: Generate changelog
4+
runs-on: ubuntu-latest
5+
steps:
6+
- name: Checkout
7+
uses: actions/checkout@v4
8+
with:
9+
fetch-depth: 0
10+
11+
- name: Generate a changelog
12+
uses: orhun/git-cliff-action@v3
13+
with:
14+
config: cliff.toml
15+
args: --verbose
16+
env:
17+
OUTPUT: CHANGELOG.md
18+
19+
- name: Commit
20+
run: |
21+
git config user.name 'github-actions[bot]'
22+
git config user.email 'github-actions[bot]@users.noreply.github.com'
23+
set +e
24+
git add CHANGELOG.md
25+
git commit -m "Update changelog"
26+
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git <branch>

0 commit comments

Comments
 (0)