Values seem to be changing

cache values locally so they can't change later
This commit is contained in:
Taliesin Sisson 2023-04-04 20:43:42 +01:00 committed by GitHub
parent 660cc9b49b
commit 89fb1fe67a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,12 +190,13 @@ export async function createOrUpdateBranch(
core.info(
`Rebasing commits made to ${workingBaseType} '${workingBase}' on to base branch '${base}'`
)
const compareBranches = `${base}..${tempBranch}`
// Checkout the actual base
await git.fetch([`${base}:${base}`], baseRemote, ['--force'])
await git.checkout(base)
// Cherrypick commits from the temporary branch starting from the working base
const commits = await git.revList(
[`${base}..${tempBranch}`, '.'],
[compareBranches, '.'],
['--reverse']
)
for (const commit of splitLines(commits)) {