mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 13:33:37 +00:00
fix: output files in download path
This commit is contained in:
parent
678377bd80
commit
135469c3f3
2 changed files with 22 additions and 0 deletions
11
dist/index.js
vendored
11
dist/index.js
vendored
|
|
@ -37,7 +37,18 @@ function mapOS (os) {
|
|||
async function downloadCLI (url) {
|
||||
core.debug(`Downloading Terraform CLI from ${url}`);
|
||||
const pathToCLIZip = await tc.downloadTool(url);
|
||||
|
||||
core.info(`Terraform CLI Download Path is ${pathToCLIZip}`)
|
||||
const files = await readdir(path);
|
||||
try {
|
||||
const files = await fs.readdir(pathToCLIZip);
|
||||
for (const file of files)
|
||||
core.info(file);
|
||||
|
||||
} catch (error) {
|
||||
core.error(err);
|
||||
throw err;
|
||||
}
|
||||
|
||||
core.debug('Extracting Terraform CLI zip file');
|
||||
const pathToCLI = await tc.extractZip(pathToCLIZip);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,18 @@ function mapOS (os) {
|
|||
async function downloadCLI (url) {
|
||||
core.debug(`Downloading Terraform CLI from ${url}`);
|
||||
const pathToCLIZip = await tc.downloadTool(url);
|
||||
|
||||
core.info(`Terraform CLI Download Path is ${pathToCLIZip}`)
|
||||
const files = await readdir(path);
|
||||
try {
|
||||
const files = await fs.readdir(pathToCLIZip);
|
||||
for (const file of files)
|
||||
core.info(file);
|
||||
|
||||
} catch (error) {
|
||||
core.error(err);
|
||||
throw err;
|
||||
}
|
||||
|
||||
core.debug('Extracting Terraform CLI zip file');
|
||||
const pathToCLI = await tc.extractZip(pathToCLIZip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue