mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 05:23:37 +00:00
lint
This commit is contained in:
parent
46ea660108
commit
02e010afee
2 changed files with 10 additions and 10 deletions
10
dist/index1.js
vendored
10
dist/index1.js
vendored
|
|
@ -3049,14 +3049,14 @@ async () => {
|
|||
const stderr = new OutputListener();
|
||||
const listeners = {
|
||||
stdout: stdout.listener,
|
||||
stderr: stderr.listener,
|
||||
stderr: stderr.listener
|
||||
};
|
||||
|
||||
// Execute terraform and capture output
|
||||
const args = process.argv.slice(2);
|
||||
const options = {
|
||||
listeners,
|
||||
ignoreReturnCode: true,
|
||||
ignoreReturnCode: true
|
||||
};
|
||||
const exitCode = await exec(pathToCLI, args, options);
|
||||
core.debug(`Terraform exited with code ${exitCode}.`);
|
||||
|
|
@ -3065,9 +3065,9 @@ async () => {
|
|||
core.debug(`exitcode: ${exitCode}`);
|
||||
|
||||
// Set outputs, result, exitcode, and stderr
|
||||
core.setOutput("stdout", stdout.contents);
|
||||
core.setOutput("stderr", stderr.contents);
|
||||
core.setOutput("exitcode", exitCode.toString(10));
|
||||
core.setOutput('stdout', stdout.contents);
|
||||
core.setOutput('stderr', stderr.contents);
|
||||
core.setOutput('exitcode', exitCode.toString(10));
|
||||
|
||||
if (exitCode === 0 || exitCode === 2) {
|
||||
// A exitCode of 0 is considered a success
|
||||
|
|
|
|||
|
|
@ -21,14 +21,14 @@ async () => {
|
|||
const stderr = new OutputListener();
|
||||
const listeners = {
|
||||
stdout: stdout.listener,
|
||||
stderr: stderr.listener,
|
||||
stderr: stderr.listener
|
||||
};
|
||||
|
||||
// Execute terraform and capture output
|
||||
const args = process.argv.slice(2);
|
||||
const options = {
|
||||
listeners,
|
||||
ignoreReturnCode: true,
|
||||
ignoreReturnCode: true
|
||||
};
|
||||
const exitCode = await exec(pathToCLI, args, options);
|
||||
core.debug(`Terraform exited with code ${exitCode}.`);
|
||||
|
|
@ -37,9 +37,9 @@ async () => {
|
|||
core.debug(`exitcode: ${exitCode}`);
|
||||
|
||||
// Set outputs, result, exitcode, and stderr
|
||||
core.setOutput("stdout", stdout.contents);
|
||||
core.setOutput("stderr", stderr.contents);
|
||||
core.setOutput("exitcode", exitCode.toString(10));
|
||||
core.setOutput('stdout', stdout.contents);
|
||||
core.setOutput('stderr', stderr.contents);
|
||||
core.setOutput('exitcode', exitCode.toString(10));
|
||||
|
||||
if (exitCode === 0 || exitCode === 2) {
|
||||
// A exitCode of 0 is considered a success
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue