Fix caching tool

This commit is contained in:
Shaharia Azam 2022-05-18 12:38:04 +02:00
parent c321a4f62a
commit e95816e554

View file

@ -138,6 +138,8 @@ async function run () {
} }
const pathToCLI = tc.find('terraform', version, arch); const pathToCLI = tc.find('terraform', version, arch);
// check if tool exists in cache, if not, download and cache it
if (!pathToCLI) { if (!pathToCLI) {
// Download requested version // Download requested version
const pathToCLI = await downloadCLI(build.url); const pathToCLI = await downloadCLI(build.url);