Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add minor release versions
  • Loading branch information
viktoriia-fomina authored Oct 14, 2022
commit b4ea2e3c2fc7534af9245033a2aa604794f358f7
15 changes: 15 additions & 0 deletions .github/workflows/publish-plugin-and-cli-from-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ on:

workflow_dispatch:
inputs:
minor-release:
type: choice
description: "It adds alpha or beta postfix to version."
required: false
options:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we choose between these values only?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we choose between these values only?

I don't think it's possible to have more than 4 minor releases in a month. I don't want to give the possibility to publish occasionally an artifact with the wrong version

- "1"
- "2"
- "3"
- "4"

version-postfix:
type: choice
description: "It adds alpha or beta postfix to version."
Expand Down Expand Up @@ -49,6 +59,11 @@ jobs:
run: |
echo "VERSION="$(date +%Y).$(date +%-m)"" >> $GITHUB_ENV

- name: Set version for minor release
if: ${{ github.event.inputs.minor-release != '' }}
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:
Expand Down