Skip to content

Commit 94c7a3b

Browse files
author
Vadym Mudryi
committed
fix: reduce number of input vars by dropping branch name
1 parent c7512ac commit 94c7a3b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/publish-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ name: Publish release
1111
on:
1212
workflow_dispatch:
1313
inputs:
14-
branch_name:
15-
description: Branch to build from
16-
default: develop
17-
required: true
14+
# release_version:
15+
# This input parameter specifies the release version number for the workflow.
16+
# Value is used to checkout the correct branch or tag
1817
release_version:
1918
description: Release version number
2019
required: true
@@ -34,7 +33,7 @@ jobs:
3433
- uses: actions/checkout@v4
3534
if: github.event_name == 'workflow_dispatch'
3635
with:
37-
ref: '${{ github.event.inputs.branch_name }}'
36+
ref: '${{ github.event.inputs.release_version }}'
3837

3938
- uses: actions/checkout@v4
4039
if: github.event_name == 'push'
@@ -89,7 +88,7 @@ jobs:
8988
- uses: actions/checkout@v4
9089
if: github.event_name == 'workflow_dispatch'
9190
with:
92-
ref: '${{ github.event.inputs.branch_name }}'
91+
ref: '${{ github.event.inputs.release_version }}'
9392

9493
- uses: actions/checkout@v4
9594
if: github.event_name == 'push'

0 commit comments

Comments
 (0)