Skip to content

Commit

Permalink
Fix string interpolation when caching canaries (#2)
Browse files Browse the repository at this point in the history
Previously, any canary's cache key would be `0.0.0-[object Object]` which isn't terribly ideal if multiple canaries are at play.
  • Loading branch information
danopia authored Apr 28, 2021
1 parent a33d97b commit 1dbdd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function install(version) {
const newCachedPath = await tc.cacheDir(
extractedFolder,
"deno",
version.isCanary ? `0.0.0-${version}` : version.version,
version.isCanary ? `0.0.0-${version.version}` : version.version,
);
core.info(`Cached Deno to ${newCachedPath}.`);
core.addPath(newCachedPath);
Expand Down

0 comments on commit 1dbdd42

Please sign in to comment.