From 155af1502d57703fa530a39cab30c796c7607a69 Mon Sep 17 00:00:00 2001 From: Jonathan Camara Date: Thu, 28 Apr 2022 08:01:34 -0500 Subject: [PATCH] fix: use a mutable variable for setting the CLI path --- dist/index.js | 2 +- lib/setup-terraform.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index f0fa4de..cdf630c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38,7 +38,7 @@ async function downloadCLI (url) { core.debug(`Downloading Terraform CLI from ${url}`); const pathToCLIZip = await tc.downloadTool(url); - const pathToCLI = ""; + let pathToCLI = ""; if (os.platform().startsWith('win')) { core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`) diff --git a/lib/setup-terraform.js b/lib/setup-terraform.js index e743f3f..8676f61 100644 --- a/lib/setup-terraform.js +++ b/lib/setup-terraform.js @@ -32,7 +32,7 @@ async function downloadCLI (url) { core.debug(`Downloading Terraform CLI from ${url}`); const pathToCLIZip = await tc.downloadTool(url); - const pathToCLI = ""; + let pathToCLI = ""; if (os.platform().startsWith('win')) { core.debug(`Terraform CLI Download Path is ${pathToCLIZip}`)