mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 21:43:38 +00:00
Fix caching tool
This commit is contained in:
parent
c321a4f62a
commit
e95816e554
1 changed files with 2 additions and 0 deletions
|
|
@ -138,6 +138,8 @@ async function run () {
|
||||||
}
|
}
|
||||||
|
|
||||||
const pathToCLI = tc.find('terraform', version, arch);
|
const pathToCLI = tc.find('terraform', version, arch);
|
||||||
|
|
||||||
|
// check if tool exists in cache, if not, download and cache it
|
||||||
if (!pathToCLI) {
|
if (!pathToCLI) {
|
||||||
// Download requested version
|
// Download requested version
|
||||||
const pathToCLI = await downloadCLI(build.url);
|
const pathToCLI = await downloadCLI(build.url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue