mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
Only add in -n if name has value. Same with -F for flags.
This commit is contained in:
parent
405bce6a2f
commit
1d8f0451fd
2 changed files with 38 additions and 24 deletions
31
dist/index.js
vendored
31
dist/index.js
vendored
|
|
@ -2612,20 +2612,17 @@ try {
|
|||
);
|
||||
}
|
||||
|
||||
if (bash_args_clean.length) {
|
||||
for(const x of bash_args_clean) {
|
||||
const arg = x.slice(0,2);
|
||||
const val = x.slice(2).trim();
|
||||
execArgs.push(
|
||||
`${arg}`, `${val}`
|
||||
);
|
||||
}
|
||||
if (name) {
|
||||
execArgs.push(
|
||||
"-n", `${name}`
|
||||
);
|
||||
}
|
||||
|
||||
execArgs.push(
|
||||
"-n", `${name}`,
|
||||
"-F", `${flags}`
|
||||
);
|
||||
if (flags) {
|
||||
execArgs.push(
|
||||
"-F", `${flags}`
|
||||
);
|
||||
}
|
||||
|
||||
if (fail_ci) {
|
||||
execArgs.push(
|
||||
|
|
@ -2651,6 +2648,16 @@ try {
|
|||
);
|
||||
}
|
||||
|
||||
if (bash_args_clean.length) {
|
||||
for(const x of bash_args_clean) {
|
||||
const arg = x.slice(0,2);
|
||||
const val = x.slice(2).trim();
|
||||
execArgs.push(
|
||||
`${arg}`, `${val}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
exec.exec("bash", execArgs, options)
|
||||
.catch(err => {
|
||||
if (fail_ci) {
|
||||
|
|
|
|||
31
index.js
31
index.js
|
|
@ -96,20 +96,17 @@ try {
|
|||
);
|
||||
}
|
||||
|
||||
if (bash_args_clean.length) {
|
||||
for(const x of bash_args_clean) {
|
||||
const arg = x.slice(0,2);
|
||||
const val = x.slice(2).trim();
|
||||
execArgs.push(
|
||||
`${arg}`, `${val}`
|
||||
);
|
||||
}
|
||||
if (name) {
|
||||
execArgs.push(
|
||||
"-n", `${name}`
|
||||
);
|
||||
}
|
||||
|
||||
execArgs.push(
|
||||
"-n", `${name}`,
|
||||
"-F", `${flags}`
|
||||
);
|
||||
if (flags) {
|
||||
execArgs.push(
|
||||
"-F", `${flags}`
|
||||
);
|
||||
}
|
||||
|
||||
if (fail_ci) {
|
||||
execArgs.push(
|
||||
|
|
@ -135,6 +132,16 @@ try {
|
|||
);
|
||||
}
|
||||
|
||||
if (bash_args_clean.length) {
|
||||
for(const x of bash_args_clean) {
|
||||
const arg = x.slice(0,2);
|
||||
const val = x.slice(2).trim();
|
||||
execArgs.push(
|
||||
`${arg}`, `${val}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
exec.exec("bash", execArgs, options)
|
||||
.catch(err => {
|
||||
if (fail_ci) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue