diff --git a/dist/index.js b/dist/index.js index c6d6fd1..57828d7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -431,7 +431,7 @@ function createPullRequest(inputs) { yield git.push([ '--force-with-lease', branchRemoteName, - `HEAD:refs/heads/${inputs.branch}` + `${inputs.branch}:refs/heads/${inputs.branch}` ]); core.endGroup(); } diff --git a/src/create-pull-request.ts b/src/create-pull-request.ts index 3fa3ec2..83bf8bc 100644 --- a/src/create-pull-request.ts +++ b/src/create-pull-request.ts @@ -195,7 +195,7 @@ export async function createPullRequest(inputs: Inputs): Promise { await git.push([ '--force-with-lease', branchRemoteName, - `HEAD:refs/heads/${inputs.branch}` + `${inputs.branch}:refs/heads/${inputs.branch}` ]) core.endGroup() }