Support Xcode specificed parameters

This commit is contained in:
Wipoo Shinsirikul
2020-12-05 20:31:36 +07:00
parent d9b5cc1d8b
commit c047d5942e
2 changed files with 16 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ try {
const dir = core.getInput("directory");
const write_path = core.getInput("path_to_write_report");
const verbose = core.getInput("verbose");
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();
@@ -135,6 +137,18 @@ try {
);
}
if (xcode_derived_data) {
execArgs.push(
"-D", `${xcode_derived_data}`
);
}
if (xcode_package) {
execArgs.push(
"-J", `${xcode_package}`
);
}
exec.exec("bash", execArgs, options)
.catch(err => {
if (fail_ci) {