checkout working base

This commit is contained in:
Peter Evans 2022-11-29 13:31:07 +09:00
parent 2b011faafd
commit 1bf5cb73d1
3 changed files with 66 additions and 0 deletions

2
dist/index.js vendored
View file

@ -258,6 +258,8 @@ function createOrUpdateBranch(git, commitMessage, base, branch, branchRemoteName
result.headSha = yield git.revParse('HEAD');
// Delete the temporary branch
yield git.exec(['branch', '--delete', '--force', tempBranch]);
// Checkout the working base to leave the local repository as it was found
yield git.checkout(workingBase);
return result;
});
}