mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-09 12:26:24 +00:00
Add verbosity
This commit is contained in:
7
index.js
7
index.js
@@ -13,6 +13,7 @@ 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");
|
||||
|
||||
fail_ci = core.getInput("fail_ci_if_error").toLowerCase();
|
||||
|
||||
@@ -126,6 +127,12 @@ try {
|
||||
);
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
execArgs.push(
|
||||
"-v"
|
||||
);
|
||||
}
|
||||
|
||||
exec.exec("bash", execArgs, options)
|
||||
.catch(err => {
|
||||
if (fail_ci) {
|
||||
|
||||
Reference in New Issue
Block a user