Fix build

Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Xuanwo
2023-01-09 23:32:10 +08:00
parent 4e31d5bef4
commit 83838b1674
2 changed files with 4 additions and 2 deletions

2
dist/index.js vendored
View File

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

View File

@@ -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.