diff --git a/.github/workflows/publish-plugin-and-cli-from-branch.yml b/.github/workflows/publish-plugin-and-cli-from-branch.yml index e9bdb161d6..72449e2ab3 100644 --- a/.github/workflows/publish-plugin-and-cli-from-branch.yml +++ b/.github/workflows/publish-plugin-and-cli-from-branch.yml @@ -11,6 +11,18 @@ on: workflow_dispatch: inputs: + minor-release: + type: choice + description: "It adds minor release indicator to version." + required: true + default: 'none' + options: + - 'none' + - '1' + - '2' + - '3' + - '4' + version-postfix: type: choice description: "It adds alpha or beta postfix to version." @@ -49,6 +61,11 @@ jobs: run: | echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV + - name: Set version for minor release + if: ${{ github.event.inputs.minor-release != 'none' }} + run: | + echo "VERSION=${{ env.VERSION }}.${{ github.event.inputs.minor-release }}" >> $GITHUB_ENV + - name: Create version with postfix if: ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }} run: