From 5cd5b09ed8293e19bad56f2c871e8085bafab698 Mon Sep 17 00:00:00 2001 From: Victoria <32179813+victoriafomina@users.noreply.github.com> Date: Mon, 3 Oct 2022 11:00:25 +0300 Subject: [PATCH] Publish production versions --- .github/workflows/publish-plugin-and-cli-from-branch.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-plugin-and-cli-from-branch.yml b/.github/workflows/publish-plugin-and-cli-from-branch.yml index d6c34c8f96..e9bdb161d6 100644 --- a/.github/workflows/publish-plugin-and-cli-from-branch.yml +++ b/.github/workflows/publish-plugin-and-cli-from-branch.yml @@ -18,6 +18,7 @@ on: default: no-postfix options: - no-postfix + - no-postfix-prod - alpha - beta @@ -42,7 +43,12 @@ jobs: # defining or updating the environment variable and writing this to the GITHUB_ENV environment file." echo "VERSION="$(date +%Y).$(date +%-m).${GITHUB_RUN_NUMBER}"" >> $GITHUB_ENV echo "POSTFIX=${{ github.event.inputs.version-postfix }}" >> $GITHUB_ENV - + + - name: Set production version + if: ${{ github.event.inputs.version-postfix == 'no-postfix-prod' || github.event.inputs.version-postfix == 'alpha' || github.event.inputs.version-postfix == 'beta' }} + run: | + echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV + - name: Create version with postfix if: ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }} run: