Skip to content

Commit

Permalink
chore: add log (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb authored Jun 11, 2024
1 parent ab748c9 commit 71f1e12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ const downloadExpectedImages = async (client: DownloadClient, latestArtifactId:
log.info(`Start to download expected images, artifact id = ${latestArtifactId}`);
try {
const zip = await client.downloadArtifact(latestArtifactId);
const buf = Buffer.from(zip.data as any);
log.info(`Downloaded zip size = ${buf.byteLength}`);
await Promise.all(
new Zip(Buffer.from(zip.data as any))
new Zip(buf)
.getEntries()
.filter(f => {
log.info('entryName:', f.entryName);
Expand Down

0 comments on commit 71f1e12

Please sign in to comment.