Skip to content

Commit 6f08fb5

Browse files
teneqummajusko
andauthored
CI: Fix production release workflow (#622) (#625)
Co-authored-by: Mario Kapusta <mariokapustaa@gmail.com>
1 parent 4aa0e6a commit 6f08fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/branch-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
if: ( github.event.pull_request.merged == true && startsWith(github.head_ref, 'rc/') || github.event_name == 'workflow_dispatch' )
2121
runs-on: ubuntu-latest
2222
outputs:
23-
RELEASE_VERSION: ${{ steps.set_vars.outputs.RELEASE_VERSION }}
24-
RELEASE_CANDIDATE_VERSION: ${{ steps.set_vars.outputs.RELEASE_CANDIDATE_VERSION }}
23+
RELEASE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.release_version || steps.set_vars.outputs.RELEASE_VERSION }}
24+
RELEASE_CANDIDATE_VERSION: ${{ github.event_name == 'workflow_dispatch' && format('{0}-rc', inputs.release_version) || steps.set_vars.outputs.RELEASE_CANDIDATE_VERSION }}
2525
steps:
2626
- name: Set release version
2727
id: set_vars

0 commit comments

Comments
 (0)