Commit c9d67b5 1 parent c38020c commit c9d67b5 Copy full SHA for c9d67b5
File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
types : [closed]
5
5
branches : [master]
6
+ workflow_dispatch :
7
+ inputs :
8
+ releaseType :
9
+ description : ' What kind of release is this?'
10
+ required : false
11
+ default : ' auto'
12
+ type : choice
13
+ options :
14
+ - ' auto'
15
+ - ' major'
16
+ - ' minor'
17
+ - ' patch'
18
+ - ' dev'
6
19
7
20
jobs :
8
21
version :
36
49
echo "release-kind=$RELEASE_KIND" >> $GITHUB_OUTPUT
37
50
echo "PACKAGE=false" >> $GITHUB_ENV
38
51
52
+ - name : Override release kind on manual
53
+ if : ${{ github.event.inputs.releaseType != 'auto' }}
54
+ id : override-release-kind
55
+ run : |
56
+ echo "::notice::Overriding release type to ${{ github.event.inputs.releaseType }} since this was a manual trigger"
57
+ echo "RELEASE_KIND=${{ github.event.inputs.releaseType }}" >> $GITHUB_ENV
58
+ echo "release-kind=${{ github.event.inputs.releaseType }}" >> $GITHUB_OUTPUT
59
+
39
60
- name : Get Pull Request Number
40
61
id : pr
41
62
run : |
59
80
echo "PACKAGE=true" >> $GITHUB_ENV
60
81
;;
61
82
dev)
62
- echo "Intentionally not bumping version for dev release "
83
+ bump-my-version bump --allow-dirty --verbose --no-commit --no-tag "$RELEASE_KIND "
63
84
;;
64
85
esac
65
86
You can’t perform that action at this time.
0 commit comments