From e901456ce47f34bafb81fd57c66092a4fe391471 Mon Sep 17 00:00:00 2001 From: jpaul Date: Mon, 13 Nov 2023 07:02:59 +0100 Subject: [PATCH] add commit sha to tree-creation --- dist/cleanup/index.js | 1 + dist/main/index.js | 1 + src/utils.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 77bcc86..1d4f8e6 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -74662,6 +74662,7 @@ function createTree(metadataJson) { mode: "100644", type: "blob", content: metadataJson, + sha: getCommitSha() }, ] })); core.error("Tree-sha" + response.data.sha); diff --git a/dist/main/index.js b/dist/main/index.js index a9996c1..727f324 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -75659,6 +75659,7 @@ function createTree(metadataJson) { mode: "100644", type: "blob", content: metadataJson, + sha: getCommitSha() }, ] })); core.error("Tree-sha" + response.data.sha); diff --git a/src/utils.ts b/src/utils.ts index 609e259..ee80181 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -249,6 +249,7 @@ export async function createTree(metadataJson: string): Promise { mode: "100644", type: "blob", content: metadataJson, + sha: getCommitSha() }, ], }