File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
workflow_dispatch :
13
13
inputs :
14
+ minor-release :
15
+ type : choice
16
+ description : " It adds minor release indicator to version."
17
+ required : true
18
+ default : ' none'
19
+ options :
20
+ - ' none'
21
+ - ' 1'
22
+ - ' 2'
23
+ - ' 3'
24
+ - ' 4'
25
+
14
26
version-postfix :
15
27
type : choice
16
28
description : " It adds alpha or beta postfix to version."
49
61
run : |
50
62
echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV
51
63
64
+ - name : Set version for minor release
65
+ if : ${{ github.event.inputs.minor-release != 'none' }}
66
+ run : |
67
+ echo "VERSION=${{ env.VERSION }}.${{ github.event.inputs.minor-release }}" >> $GITHUB_ENV
68
+
52
69
- name : Create version with postfix
53
70
if : ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }}
54
71
run :
You can’t perform that action at this time.
0 commit comments