File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Changelog
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ jobs :
9+ changelog :
10+ name : Generate and publish changelog
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Generate a changelog
21+ uses : orhun/git-cliff-action@v3
22+ id : git-cliff
23+ with :
24+ config : cliff.toml
25+ args : --verbose --latest --strip header
26+ env :
27+ OUTPUT : CHANGES.md
28+ GITHUB_REPO : ${{ github.repository }}
29+
30+ - name : Polish changelog
31+ shell : bash
32+ run : sed -i '1,2d' CHANGES.md
33+
34+ - name : Upload the changelog
35+ uses : ncipollo/release-action@v1
36+ with :
37+ # draft: true
38+ allowUpdates : true
39+ bodyFile : CHANGES.md
You can’t perform that action at this time.
0 commit comments