File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Bump version
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ bump-type :
7+ description : ' Bump type'
8+ required : true
9+ default : ' patch'
10+ type : choice
11+ options :
12+ - major
13+ - minor
14+ - patch
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout the code
21+ uses : actions/checkout@v4
22+
23+ - name : Bump version
24+ id : bump
25+ uses : callowayproject/bump-my-version@master
26+ env :
27+ BUMPVERSION_TAG : " true"
28+ with :
29+ args : ${{ inputs.bump-type }}
30+ github-token : ${{ secrets.GH_TOKEN }}
31+
32+ - name : Check
33+ if : steps.bump.outputs.bumped == 'true'
34+ run : |
35+ echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!"
You can’t perform that action at this time.
0 commit comments