Initial fix

This commit is contained in:
Shaharia Azam 2022-05-18 10:10:39 +02:00
parent d6a45b7634
commit 0ec838fa2f

View file

@ -137,8 +137,16 @@ async function run () {
throw new Error(`Terraform version ${version} not available for ${platform} and ${arch}`); throw new Error(`Terraform version ${version} not available for ${platform} and ${arch}`);
} }
// Download requested version const nodeDirectory = tc.find('terraform', version, arch);
const pathToCLI = await downloadCLI(build.url); console.info(nodeDirectory);
if (!nodeDirectory) {
// Download requested version
const pathToCLI = await downloadCLI(build.url);
const cachedPath = await tc.cacheDir(pathToCLI, 'terraform', version);
core.addPath(cachedPath);
}
// Install our wrapper // Install our wrapper
if (wrapper) { if (wrapper) {