File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release
22on :
3- push :
4- tags :
5- - " v*"
6- workflow_run :
7- workflows : ["Python", "Cpp"]
8- branches : [master]
9- types :
10- - completed
3+ workflow_dispatch :
114
125jobs :
136 release :
14- if : ${{ startsWith(github.event.head_commit.message, 'bump:') }}
157 runs-on : ubuntu-latest
168 permissions :
179 contents : write
1810 name : " Bump version and create changelog with commitizen"
1911 steps :
2012 - name : Check out
2113 uses : actions/checkout@v4
22- - name : Create bump and changelog
14+ with :
15+ fetch-depth : 0
16+ token : " ${{ secrets.GITHUB_TOKEN }}"
17+ - id : cz
18+ name : Create bump and changelog
2319 uses : commitizen-tools/commitizen-action@master
2420 with :
21+ github_token : ${{ secrets.GITHUB_TOKEN }}
2522 changelog_increment_filename : body.md
26- commit : false
27- push : false
2823 - name : Release
2924 uses : ncipollo/release-action@v1
3025 with :
3126 tag : v${{ env.REVISION }}
3227 bodyFile : " body.md"
3328 skipIfReleaseExists : true
29+ - name : Print Version
30+ run : echo "Bumped to version ${{ steps.cz.outputs.version }}"
3431 # TODO: create pypi source distribution
You can’t perform that action at this time.
0 commit comments