Fix string interpolation when caching canaries (#2)

Previously, any canary's cache key would be `0.0.0-[object Object]` which isn't terribly ideal if multiple canaries are at play.
This commit is contained in:
Daniel Lamando 2021-04-28 22:33:16 +02:00 committed by GitHub
parent a33d97bf8b
commit 1dbdd42fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);