Skip to content

Commit d4cb666

Browse files
viktoriia-fominaAbdullinAM
authored andcommitted
Publish plugin and CLI for minor release (UnitTestBot#1155)
1 parent 4470ea8 commit d4cb666

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

+17
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ on:
1111

1212
workflow_dispatch:
1313
inputs:
14+
minor-release:
15+
type: choice
16+
description: "It adds minor release indicator to version."
17+
required: true
18+
default: 'none'
19+
options:
20+
- 'none'
21+
- '1'
22+
- '2'
23+
- '3'
24+
- '4'
25+
1426
version-postfix:
1527
type: choice
1628
description: "It adds alpha or beta postfix to version."
@@ -49,6 +61,11 @@ jobs:
4961
run: |
5062
echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV
5163
64+
- name: Set version for minor release
65+
if: ${{ github.event.inputs.minor-release != 'none' }}
66+
run: |
67+
echo "VERSION=${{ env.VERSION }}.${{ github.event.inputs.minor-release }}" >> $GITHUB_ENV
68+
5269
- name: Create version with postfix
5370
if: ${{ (env.POSTFIX == 'alpha') || (env.POSTFIX == 'beta') }}
5471
run:

0 commit comments

Comments
 (0)