Skip to content

Commit

Permalink
Only set executable directory to downloadDirectory if undefined
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jimver committed Apr 20, 2024
1 parent 386cdbd commit 206bd0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export async function download(
core.debug(`Tool was moved to cache directory ${cacheDirectory}`)
executableDirectory = cacheDirectory
}
executableDirectory = downloadDirectory
if (executableDirectory === undefined) {
executableDirectory = downloadDirectory
}
}
core.debug(`Executable path ${executableDirectory}`)
// String with full executable path
Expand Down

0 comments on commit 206bd0f

Please sign in to comment.