diff --git a/lib/setup-terraform.js b/lib/setup-terraform.js index 40ee0b1..0922c07 100644 --- a/lib/setup-terraform.js +++ b/lib/setup-terraform.js @@ -138,6 +138,8 @@ async function run () { } const pathToCLI = tc.find('terraform', version, arch); + + // check if tool exists in cache, if not, download and cache it if (!pathToCLI) { // Download requested version const pathToCLI = await downloadCLI(build.url);