debug: add some logging to debug bcr action

This commit is contained in:
Derek Cormier 2022-05-02 19:37:43 -07:00 committed by Derek Cormier
parent 0bea5ccc49
commit 91e1086f79
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import {
copyFileSync,
writeFileSync,
appendFileSync,
readdirSync,
} from "fs";
import https from "https";
import { resolve } from "path";
@ -156,7 +157,10 @@ async function stampSourceFile(
sourceJson.url.lastIndexOf("/") + 1
);
console.log(`Downloading archive ${sourceJson.url}`);
await download(sourceJson.url, filename);
console.log("Finished downloading");
console.log(readdirSync("."));
const hash = crypto.createHash("sha256");
hash.update(readFileSync(filename));