Skip to content

Commit 9485372

Browse files
committed
add base input to fix create-pull-request error
1 parent 33265d2 commit 9485372

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Since GitHub does not offer this feature, I decided to create it myself.
6262
| workflow-yaml-key | Specify the workflow YAML key that will be updated. | |
6363
| github-token | PAT token with more information at [[#personal-access-token---pat][Personal Access Token - PAT]]. | |
6464
| git-tags | The repository tags from the newest to the oldest. Example [[#extracting-the-tags][Extract the tags]]. | |
65+
| base | Sets the pull request base branch. | |
6566

6667
*** Optional input arguments
6768

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ inputs:
3232
git-tags:
3333
description: >
3434
The repository tags.
35+
base:
36+
description: >
37+
Sets the pull request base branch.
38+
Necessary due to:
39+
- https://github.com/peter-evans/create-pull-request/blob/v6.1.0/src/create-pull-request.ts#L98
3540
runs:
3641
using: 'composite'
3742
steps:
@@ -78,6 +83,7 @@ runs:
7883
uses: peter-evans/create-pull-request@v6
7984
with:
8085
token: ${{ inputs.github-token }}
86+
base: ${{ inputs.base }}
8187
branch-suffix: timestamp
8288
branch: git-tag-to-workflow-dispatch
8389
commit-message: |

0 commit comments

Comments
 (0)