debug: add some logging to debug bcr action
This commit is contained in:
parent
0bea5ccc49
commit
91e1086f79
|
@ -6,6 +6,7 @@ import {
|
||||||
copyFileSync,
|
copyFileSync,
|
||||||
writeFileSync,
|
writeFileSync,
|
||||||
appendFileSync,
|
appendFileSync,
|
||||||
|
readdirSync,
|
||||||
} from "fs";
|
} from "fs";
|
||||||
import https from "https";
|
import https from "https";
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
|
@ -156,7 +157,10 @@ async function stampSourceFile(
|
||||||
sourceJson.url.lastIndexOf("/") + 1
|
sourceJson.url.lastIndexOf("/") + 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log(`Downloading archive ${sourceJson.url}`);
|
||||||
await download(sourceJson.url, filename);
|
await download(sourceJson.url, filename);
|
||||||
|
console.log("Finished downloading");
|
||||||
|
console.log(readdirSync("."));
|
||||||
|
|
||||||
const hash = crypto.createHash("sha256");
|
const hash = crypto.createHash("sha256");
|
||||||
hash.update(readFileSync(filename));
|
hash.update(readFileSync(filename));
|
||||||
|
|
Loading…
Reference in New Issue