File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -432,12 +432,6 @@ function createPullRequest(inputs) {
432
432
if (branchRemoteName == 'origin' && base == inputs.branch) {
433
433
throw new Error(`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`);
434
434
}
435
- // For self-hosted runners the repository state persists between runs.
436
- // This command prunes the stale remote ref when the pull request branch was
437
- // deleted after being merged or closed. Without this the push using
438
- // '--force-with-lease' fails due to "stale info."
439
- // https://github.com/peter-evans/create-pull-request/issues/633
440
- yield git.exec(['remote', 'prune', branchRemoteName]);
441
435
core.endGroup();
442
436
// Apply the branch suffix if set
443
437
if (inputs.branchSuffix) {
Original file line number Diff line number Diff line change @@ -126,12 +126,6 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
126
126
`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`
127
127
)
128
128
}
129
- // For self-hosted runners the repository state persists between runs.
130
- // This command prunes the stale remote ref when the pull request branch was
131
- // deleted after being merged or closed. Without this the push using
132
- // '--force-with-lease' fails due to "stale info."
133
- // https://github.com/peter-evans/create-pull-request/issues/633
134
- await git . exec ( [ 'remote' , 'prune' , branchRemoteName ] )
135
129
core . endGroup ( )
136
130
137
131
// Apply the branch suffix if set
You can’t perform that action at this time.
0 commit comments