File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate Changelog
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ changelog :
13+ name : Generate changelog
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Generate changelog
22+ uses : orhun/git-cliff-action@v4
23+ with :
24+ config : cliff.toml
25+ args : --verbose
26+ env :
27+ OUTPUT : CHANGELOG.md
28+ GITHUB_REPO : ${{ github.repository }}
29+
30+ - name : Commit
31+ run : |
32+ git config user.name 'github-actions[bot]'
33+ git config user.email 'github-actions[bot]@users.noreply.github.com'
34+ git add CHANGELOG.md
35+ git commit -m "docs: update changelog"
36+ git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git master
You can’t perform that action at this time.
0 commit comments