File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Bump version
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+
7
+ jobs :
8
+ bump_version :
9
+ if : ${{ startsWith(github.event.head_commit.message, 'bump:') }}
10
+ name : " Bump version and create changelog with commitizen"
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Check out
15
+ uses : actions/checkout@v3
16
+ with :
17
+ fetch-depth : 0
18
+ token : " ${{ secrets.GITHUB_TOKEN }}"
19
+
20
+ - id : cz
21
+ name : Create bump and changelog
22
+ uses : commitizen-tools/commitizen-action@master
23
+ with :
24
+ github_token : ${{ secrets.GITHUB_TOKEN }}
25
+
26
+ - name : Print Version
27
+ run : echo "Bumped to version ${{ steps.cz.outputs.version }}"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ permissions:
14
14
15
15
jobs :
16
16
build :
17
-
17
+ if : ${{ startsWith(github.event.head_commit.message, 'bump:') }}
18
18
runs-on : ubuntu-latest
19
19
20
20
strategy :
You can’t perform that action at this time.
0 commit comments