Skip to content

Commit

Permalink
debug: add some logging to debug bcr action
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed May 3, 2022
1 parent 0bea5cc commit 91e1086
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/create-bcr-entry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
copyFileSync,
writeFileSync,
appendFileSync,
readdirSync,
} from "fs";
import https from "https";
import { resolve } from "path";
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 91e1086

Please sign in to comment.