Only set executable directory to downloadDirectory if undefined

There is a bug where we cannot find the installer when using a cache, this is because I set the executableDirectory to downloadDirectory always, which is not correct since I moved the installer to the github cache directory.
This commit is contained in:
Jimver
2024-04-20 21:00:24 +02:00
committed by Jim
parent 386cdbd67d
commit 206bd0fe38
+2
View File
@@ -96,8 +96,10 @@ export async function download(
core.debug(`Tool was moved to cache directory ${cacheDirectory}`)
executableDirectory = cacheDirectory
}
if (executableDirectory === undefined) {
executableDirectory = downloadDirectory
}
}
core.debug(`Executable path ${executableDirectory}`)
// String with full executable path
let fullExecutablePath: string