Add directory and file save

This commit is contained in:
Thomas Hu
2020-07-07 22:29:12 -04:00
parent f3570723ef
commit 85ec2c8d83
5 changed files with 39 additions and 1 deletions

14
dist/index.js vendored
View File

@@ -2214,6 +2214,8 @@ try {
const flags = core.getInput("flags");
const file = core.getInput("file");
const env_vars = core.getInput("env_vars");
const dir = core.getInput("directory");
const write_path = core.getInput("path_to_write_report");
fail_ci = core.getInput("fail_ci_if_error").toLowerCase();
@@ -2287,6 +2289,12 @@ try {
);
}
if (dir) {
execArgs.push(
"-s", `${dir}`
);
}
execArgs.push(
"-n", `${name}`,
"-F", `${flags}`
@@ -2304,6 +2312,12 @@ try {
);
}
if (write_path) {
execArgs.push(
"-q", `${write_path}`
);
}
exec.exec("bash", execArgs, options)
.catch(err => {
if (fail_ci) {