mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 13:33:37 +00:00
Initial fix
This commit is contained in:
parent
d6a45b7634
commit
0ec838fa2f
1 changed files with 10 additions and 2 deletions
|
|
@ -137,9 +137,17 @@ async function run () {
|
|||
throw new Error(`Terraform version ${version} not available for ${platform} and ${arch}`);
|
||||
}
|
||||
|
||||
// Download requested version
|
||||
const pathToCLI = await downloadCLI(build.url);
|
||||
const nodeDirectory = tc.find('terraform', version, arch);
|
||||
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
|
||||
if (wrapper) {
|
||||
await installWrapper(pathToCLI);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue