From e95816e5549f4ecc84a8014ad09df439d30703e9 Mon Sep 17 00:00:00 2001 From: Shaharia Azam Date: Wed, 18 May 2022 12:38:04 +0200 Subject: [PATCH] Fix caching tool --- lib/setup-terraform.js | 2 ++ 1 file changed, 2 insertions(+) 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);