use parent tree for base_tree

This commit is contained in:
Peter Evans
2024-08-23 11:32:08 +00:00
parent 02efff68da
commit 633a5a9752
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ export class GitHubHelper {
core.info(`Creating tree for local commit ${commit.sha}`)
const {data: tree} = await this.octokit.rest.git.createTree({
...repository,
base_tree: parentCommit.sha, // but this should probably be tree
base_tree: parentCommit.tree,
tree: treeObjects
})
treeSha = tree.sha