Skip to content

Commit

Permalink
Fix verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Dec 20, 2020
1 parent 4686d70 commit 8b988c2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const fs = require("fs");
const request = require('requestretry');

let fail_ci;
let verbose;
try {
const name = core.getInput("name");
const token = core.getInput("token");
Expand All @@ -13,12 +14,12 @@ try {
const env_vars = core.getInput("env_vars");
const dir = core.getInput("directory");
const write_path = core.getInput("path_to_write_report");
const verbose = core.getInput("verbose");
const working_dir = core.getInput("working-directory");
const xcode_derived_data = core.getInput("xcode_derived_data");
const xcode_package = core.getInput("xcode_package");

fail_ci = core.getInput("fail_ci_if_error").toLowerCase();
verbose = core.getInput("verbose").toLowerCase();

if (
fail_ci === "yes" ||
Expand All @@ -32,6 +33,18 @@ try {
fail_ci = false;
}

if (
verbose === "yes" ||
verbose === "y" ||
verbose === "true" ||
verbose === "t" ||
verbose === "1"
) {
verbose = true;
} else {
verbose = false;
}

request({
json: false,
maxAttempts: 10,
Expand Down

0 comments on commit 8b988c2

Please sign in to comment.