We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3133d9e commit 1cede17Copy full SHA for 1cede17
1 file changed
.github/workflows/publish-plugin-and-cli-from-branch.yml
@@ -18,6 +18,7 @@ on:
18
default: no-postfix
19
options:
20
- no-postfix
21
+ - no-postfix-prod
22
- alpha
23
- beta
24
@@ -42,7 +43,12 @@ jobs:
42
43
# defining or updating the environment variable and writing this to the GITHUB_ENV environment file."
44
echo "VERSION="$(date +%Y).$(date +%-m).${GITHUB_RUN_NUMBER}"" >> $GITHUB_ENV
45
echo "POSTFIX=${{ github.event.inputs.version-postfix }}" >> $GITHUB_ENV
-
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
52
- name: Create version with postfix
53
if: ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }}
54
run:
0 commit comments