Skip to content

Commit 0d53e16

Browse files
committed
chore: add support for any target branch
Signed-off-by: heitorlessa <lessa@amazon.co.uk>
1 parent 3905a4c commit 0d53e16

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/actions/create-pr/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ inputs:
4141
github_token:
4242
description: "GitHub token for GitHub CLI"
4343
required: true
44+
target_branch:
45+
description: "Branch to target when creating a PR against (develop, by default)"
46+
required: false
47+
default: develop
48+
4449
outputs:
4550
pull_request_id:
4651
description: "Pull request ID created"
4752
value: ${{ steps.create-pr.outputs.pull_request_id }}
4853
temp_branch:
4954
description: "Temporary branch created with staged changed"
5055
value: ${{ steps.create-pr.outputs.temp_branch }}
56+
5157
runs:
5258
using: "composite"
5359
steps:
@@ -68,8 +74,9 @@ runs:
6874
env:
6975
FILES: ${{ inputs.files }}
7076
TEMP_BRANCH_PREFIX: ${{ inputs.temp_branch_prefix }}
71-
GH_TOKEN: ${{ inputs.github_token }}
7277
PR_TITLE: ${{ inputs.pull_request_title }}
78+
BASE_BRANCH: ${{ inputs.target_branch }}
79+
GH_TOKEN: ${{ inputs.github_token }}
7380
shell: bash
7481
- id: cleanup
7582
name: Cleanup orphaned branch

0 commit comments

Comments
 (0)