Add .exe on windows (#83)
This commit is contained in:
parent
14421f585a
commit
f26390261c
5 changed files with 204 additions and 14 deletions
6
index.js
6
index.js
|
|
@ -96,7 +96,11 @@ async function downloadBazelisk() {
|
|||
|
||||
core.debug('Adding to the cache...');
|
||||
fs.chmodSync(downloadPath, '755');
|
||||
const cachePath = await tc.cacheFile(downloadPath, 'bazel', 'bazelisk', version)
|
||||
let bazel_name = "bazel";
|
||||
if (platform == 'windows') {
|
||||
bazel_name = `${bazel_name}.exe`
|
||||
}
|
||||
const cachePath = await tc.cacheFile(downloadPath, bazel_name, 'bazelisk', version)
|
||||
core.debug(`Successfully cached bazelisk to ${cachePath}`)
|
||||
|
||||
return cachePath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue