From 83838b167427480c6b89e2a6fedf9d54e29fdda1 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 9 Jan 2023 23:32:10 +0800 Subject: [PATCH] Fix build Signed-off-by: Xuanwo --- dist/index.js | 2 +- src/sccache.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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.