[CI] test committed
This commit is contained in:
parent
ff0beed1b2
commit
10ee5e2199
2 changed files with 7 additions and 0 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -101,6 +101,12 @@ function splitLines(multilineString) {
|
|||
}
|
||||
function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName, signoff) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
// For self-hosted runners the repository state persists between runs.
|
||||
// This prunes the stale remote ref when the pull request branch was
|
||||
// deleted after being merged or closed. Without this the push using
|
||||
// '--force-with-lease' fails due to "stale info."
|
||||
// https://github.com/peter-evans/create-pull-request/issues/633
|
||||
yield git.exec(['remote', 'prune', 'origin']);
|
||||
// Get the working base.
|
||||
// When a ref, it may or may not be the actual base.
|
||||
// When a commit, we must rebase onto the actual base.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue