Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Jun 8, 2024
1 parent b2e57a6 commit 3fcf8d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ export class Downloader {
}),
);
if (!asset) {
core.debug(`Cound not find asset ${inspect(this.cfg)}`);
core.debug(`Asset count:${release.assets}, release:${inspect(release)}`);
core.debug(`Could not find asset ${inspect(this.cfg)}`);
core.debug(
`Asset count:${release.assets.length}, release:${inspect(release)}`,
);
core.setOutput("matched", false);
throw new Error("Cound not find asset");
throw new Error("Could not find asset");
}

core.setOutput("asset-id", asset.id);
Expand Down
1 change: 1 addition & 0 deletions src/utils/is-target-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ export function isTargetAsset({
arch: Config["arch"];
platform: Config["platform"];
}): boolean {
console.log("debug", { name, arch, platform });
return matchArch({ name, arch }) && matchPlatform({ name, platform });
}

0 comments on commit 3fcf8d2

Please sign in to comment.