mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-05 14:09:25 +00:00
Add directory and file save
This commit is contained in:
parent
f3570723ef
commit
85ec2c8d83
5 changed files with 39 additions and 1 deletions
14
dist/index.js
vendored
14
dist/index.js
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue