add logging for debugging

This commit is contained in:
jpaul 2023-11-28 10:00:12 +01:00
parent 7e534b7e1c
commit 452871784e
3 changed files with 9 additions and 9 deletions

6
dist/cleanup/index.js generated vendored
View File

@ -82600,9 +82600,9 @@ function getImageData(shas) {
}); });
const imageData = []; const imageData = [];
core.info(String(shas)); core.info(String(shas));
for (const sha in shas) { for (let i = 0; i < shas.length; i++) {
core.info(sha); core.info("reent sha: " + shas[i]);
const blobTreeSha = yield getBlobTreeSha(octokit, context, sha); const blobTreeSha = yield getBlobTreeSha(octokit, context, shas[i]);
const blobSha = yield getBlobSha(octokit, context, blobTreeSha); const blobSha = yield getBlobSha(octokit, context, blobTreeSha);
imageData.push(yield getBlobContent(octokit, context, blobSha)); imageData.push(yield getBlobContent(octokit, context, blobSha));
} }

6
dist/main/index.js generated vendored
View File

@ -83676,9 +83676,9 @@ function getImageData(shas) {
}); });
const imageData = []; const imageData = [];
core.info(String(shas)); core.info(String(shas));
for (const sha in shas) { for (let i = 0; i < shas.length; i++) {
core.info(sha); core.info("reent sha: " + shas[i]);
const blobTreeSha = yield getBlobTreeSha(octokit, context, sha); const blobTreeSha = yield getBlobTreeSha(octokit, context, shas[i]);
const blobSha = yield getBlobSha(octokit, context, blobTreeSha); const blobSha = yield getBlobSha(octokit, context, blobTreeSha);
imageData.push(yield getBlobContent(octokit, context, blobSha)); imageData.push(yield getBlobContent(octokit, context, blobSha));
} }

View File

@ -410,9 +410,9 @@ export async function getImageData(shas: string[]) {
}); });
const imageData = [] const imageData = []
core.info(String(shas)) core.info(String(shas))
for (const sha in shas) { for (let i=0; i< shas.length; i++) {
core.info(sha) core.info("reent sha: " + shas[i])
const blobTreeSha = await getBlobTreeSha(octokit, context, sha) const blobTreeSha = await getBlobTreeSha(octokit, context, shas[i])
const blobSha = await getBlobSha(octokit, context, blobTreeSha) const blobSha = await getBlobSha(octokit, context, blobTreeSha)
imageData.push(await getBlobContent(octokit, context, blobSha)) imageData.push(await getBlobContent(octokit, context, blobSha))
} }