File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 bump-level :
66 type : string
77 required : true
8- description : Determines which part of the version to increment [patch/minor/major]
8+ description : Determines which part of the version to increment [auto/ patch/minor/major]
99 go-version-file :
1010 type : string
1111 default : go.mod
@@ -59,17 +59,24 @@ jobs:
5959 steps :
6060 - name : Checkout
6161 uses : tmknom/checkout-action@v1
62+ with :
63+ fetch-depth : 100
6264
6365 - name : Set up Go
6466 uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
6567 with :
6668 go-version-file : ${{ inputs.go-version-file }}
6769
70+ - name : Determine Version Level
71+ id : determine
72+ if : ${{ inputs.bump-level == 'auto' }}
73+ uses : tmknom/determine-version-level-action@83449961162020e90bb0cd55acb99cc695526221 # v0.2.1
74+
6875 - name : Bump Version
6976 id : bump
7077 uses : tmknom/bump-version-action@87bed7f224292cab5b46a4cae9897bbf64153f00 # v0.2.1
7178 with :
72- bump-level : ${{ inputs.bump-level }}
79+ bump-level : ${{ steps.determine.outputs.bump-level || inputs.bump-level }}
7380
7481 - name : Push Version Tag
7582 uses : tmknom/push-version-tag-action@a9d1b46f9c29d3db510771452257b228bfd8a33f # v0.1.1
You can’t perform that action at this time.
0 commit comments