shift setting the base to before the push

This commit is contained in:
Peter Evans 2024-07-25 14:47:48 +00:00
parent 43d45f2e88
commit 136db6a783
2 changed files with 4 additions and 5 deletions

View file

@ -194,6 +194,8 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
inputs.signoff,
inputs.addPaths
)
// Set the base. It would have been '' if not specified as an input
inputs.base = result.base
core.endGroup()
if (['created', 'updated'].includes(result.action)) {
@ -400,9 +402,6 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
core.endGroup()
}
// Set the base. It would have been '' if not specified as an input
inputs.base = result.base
if (result.hasDiffWithBase) {
// Create or update the pull request
core.startGroup('Create or update the pull request')