shift setting the base to before the push

This commit is contained in:
Peter Evans committed 2024-08-27 21:20:44 +01:00
1 parent 4cf9647c0e
commit 014f5c1fb1
2 files changed
+4 -5

No files matched your search

+2 -3
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')