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

View File

@@ -10,6 +10,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();
@@ -83,6 +85,12 @@ try {
);
}
if (dir) {
execArgs.push(
"-s", `${dir}`
);
}
execArgs.push(
"-n", `${name}`,
"-F", `${flags}`
@@ -100,6 +108,12 @@ try {
);
}
if (write_path) {
execArgs.push(
"-q", `${write_path}`
);
}
exec.exec("bash", execArgs, options)
.catch(err => {
if (fail_ci) {