Skip to content

Commit 7769d47

Browse files
authored
ci: add target branch input (#1073)
1 parent 1929b1f commit 7769d47

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/create-release-pr.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
description: "New iOS SDK Version (e.g., 1.5.0). Leave blank to skip."
1717
required: false
1818
type: string
19+
target_branch:
20+
description: "Target branch to create the release PR on. Defaults to main."
21+
required: false
22+
type: string
23+
default: main
1924

2025
# For making a release pr from cordova github actions
2126
workflow_dispatch:
@@ -32,6 +37,11 @@ on:
3237
description: "New iOS SDK Version (e.g., 1.5.0). Leave blank to skip."
3338
required: false
3439
type: string
40+
target_branch:
41+
description: "Target branch to create the release PR on. Defaults to main."
42+
required: false
43+
type: string
44+
default: main
3545

3646
jobs:
3747
prep:
@@ -146,8 +156,7 @@ jobs:
146156
uses: OneSignal/sdk-actions/.github/workflows/create-release.yml@main
147157
with:
148158
release_branch: ${{ needs.prep.outputs.release_branch }}
149-
version_from: ${{ needs.update-version.outputs.flutter_from }}
150-
version_to: ${{ inputs.flutter_version }}
159+
target_branch: ${{ inputs.target_branch }}
151160
android_from: ${{ needs.update-version.outputs.android_from }}
152161
android_to: ${{ inputs.android_version }}
153162
ios_from: ${{ needs.update-version.outputs.ios_from }}

0 commit comments

Comments
 (0)