mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-05-14 02:22:41 +00:00
force push
This commit is contained in:
Vendored
+1
-1
@@ -1321,7 +1321,7 @@ class GitHubHelper {
|
||||
.then(() => true, () => false);
|
||||
if (branchExists) {
|
||||
core.info(`Branch ${branch} exists; Updating ref`);
|
||||
yield this.octokit.rest.git.updateRef(Object.assign(Object.assign({}, repository), { sha: newHead, ref: `heads/${branch}` }));
|
||||
yield this.octokit.rest.git.updateRef(Object.assign(Object.assign({}, repository), { sha: newHead, ref: `heads/${branch}`, force: true }));
|
||||
}
|
||||
else {
|
||||
core.info(`Branch ${branch} does not exist; Creating ref`);
|
||||
|
||||
Reference in New Issue
Block a user