push branch instead of head
This commit is contained in:
parent
fa545b74a7
commit
9dd92835ab
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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();
|
||||
}
|
||||
|
||||
@ -195,7 +195,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||
await git.push([
|
||||
'--force-with-lease',
|
||||
branchRemoteName,
|
||||
`HEAD:refs/heads/${inputs.branch}`
|
||||
`${inputs.branch}:refs/heads/${inputs.branch}`
|
||||
])
|
||||
core.endGroup()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user