Skip to content

Commit a5d628c

Browse files
viktoriia-fominaAbdullinAM
authored andcommitted
Publish without workflow run number (UnitTestBot#1053)
1 parent 4293d4f commit a5d628c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-plugin-and-cli-from-branch.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
default: no-postfix
1919
options:
2020
- no-postfix
21+
- no-postfix-prod
2122
- alpha
2223
- beta
2324

@@ -42,7 +43,12 @@ jobs:
4243
# defining or updating the environment variable and writing this to the GITHUB_ENV environment file."
4344
echo "VERSION="$(date +%Y).$(date +%-m).${GITHUB_RUN_NUMBER}"" >> $GITHUB_ENV
4445
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+
4652
- name: Create version with postfix
4753
if: ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }}
4854
run:

0 commit comments

Comments
 (0)