Skip to content

Commit 3fcf8d2

Browse files
committed
debug
1 parent b2e57a6 commit 3fcf8d2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/downloader.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ export class Downloader {
5757
}),
5858
);
5959
if (!asset) {
60-
core.debug(`Cound not find asset ${inspect(this.cfg)}`);
61-
core.debug(`Asset count:${release.assets}, release:${inspect(release)}`);
60+
core.debug(`Could not find asset ${inspect(this.cfg)}`);
61+
core.debug(
62+
`Asset count:${release.assets.length}, release:${inspect(release)}`,
63+
);
6264
core.setOutput("matched", false);
63-
throw new Error("Cound not find asset");
65+
throw new Error("Could not find asset");
6466
}
6567

6668
core.setOutput("asset-id", asset.id);

src/utils/is-target-asset.ts

+1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ export function isTargetAsset({
4949
arch: Config["arch"];
5050
platform: Config["platform"];
5151
}): boolean {
52+
console.log("debug", { name, arch, platform });
5253
return matchArch({ name, arch }) && matchPlatform({ name, platform });
5354
}

0 commit comments

Comments
 (0)