File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 18
18
default : no-postfix
19
19
options :
20
20
- no-postfix
21
+ - no-postfix-prod
21
22
- alpha
22
23
- beta
23
24
42
43
# defining or updating the environment variable and writing this to the GITHUB_ENV environment file."
43
44
echo "VERSION="$(date +%Y).$(date +%-m).${GITHUB_RUN_NUMBER}"" >> $GITHUB_ENV
44
45
echo "POSTFIX=${{ github.event.inputs.version-postfix }}" >> $GITHUB_ENV
45
-
46
+
47
+ - name : Set production version
48
+ if : ${{ github.event.inputs.version-postfix == 'no-postfix-prod' || github.event.inputs.version-postfix == 'alpha' || github.event.inputs.version-postfix == 'beta' }}
49
+ run : |
50
+ echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV
51
+
46
52
- name : Create version with postfix
47
53
if : ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }}
48
54
run :
You can’t perform that action at this time.
0 commit comments