Skip to content

Commit e57ed95

Browse files
committed
feat: add branch input support for release-dev workflow
1 parent 4f42353 commit e57ed95

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release-dev.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: Create Release
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch to build and publish'
8+
required: true
9+
default: 'develop'
10+
type: choice
11+
options:
12+
- develop
13+
- feat/platform
514

615
jobs:
716
build:
@@ -12,7 +21,7 @@ jobs:
1221
- name: Checkout repository
1322
uses: actions/checkout@v3
1423
with:
15-
ref: develop # Ensure it works from the develop branch
24+
ref: ${{ inputs.branch }}
1625

1726
- name: Set up JDK 21
1827
uses: actions/setup-java@v3
@@ -56,7 +65,7 @@ jobs:
5665
release_name: v${{ env.GRADLE_VERSION }}-dev.${{ env.COMMIT_HASH }}
5766
draft: false
5867
prerelease: true
59-
commitish: develop
68+
commitish: ${{ inputs.branch }}
6069
body: |
6170
This release contains dev builds for all Gradle modules.
6271
env:

0 commit comments

Comments
 (0)