diff --git a/dist/index.js b/dist/index.js index 8a94e63..8b24262 100644 --- a/dist/index.js +++ b/dist/index.js @@ -47,7 +47,7 @@ function setup() { // is not input. const version = core.getInput('version'); console.log('try to setup for version: ', version); - const downloadUrl = `https://github.com/mozilla/sccache/releases/download/${version}/${getFilename}`; + const downloadUrl = `https://github.com/mozilla/sccache/releases/download/${version}/${getFilename(version)}`; console.log('try to setup from url: ', downloadUrl); // Download and extract. const sccachePackage = yield (0, tool_cache_1.downloadTool)(downloadUrl); diff --git a/src/sccache.ts b/src/sccache.ts index 567201e..c380de3 100644 --- a/src/sccache.ts +++ b/src/sccache.ts @@ -10,7 +10,9 @@ async function setup() { const version = core.getInput('version'); console.log('try to setup for version: ', version); - const downloadUrl = `https://github.com/mozilla/sccache/releases/download/${version}/${getFilename}`; + const downloadUrl = `https://github.com/mozilla/sccache/releases/download/${version}/${getFilename( + version + )}`; console.log('try to setup from url: ', downloadUrl); // Download and extract.