From 10ee5e21990d17b90a2d9babdcf302c2016396be Mon Sep 17 00:00:00 2001 From: peter-evans Date: Fri, 20 Nov 2020 08:26:21 +0000 Subject: [PATCH] [CI] test committed --- dist/index.js | 6 ++++++ report.txt | 1 + 2 files changed, 7 insertions(+) create mode 100644 report.txt diff --git a/dist/index.js b/dist/index.js index e1a6acd..a3fa8a0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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. diff --git a/report.txt b/report.txt new file mode 100644 index 0000000..848814b --- /dev/null +++ b/report.txt @@ -0,0 +1 @@ +1605860781