mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 06:57: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) {
|
if (name) {
|
||||||
for(const x of bash_args_clean) {
|
execArgs.push(
|
||||||
const arg = x.slice(0,2);
|
"-n", `${name}`
|
||||||
const val = x.slice(2).trim();
|
);
|
||||||
execArgs.push(
|
|
||||||
`${arg}`, `${val}`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
execArgs.push(
|
if (flags) {
|
||||||
"-n", `${name}`,
|
execArgs.push(
|
||||||
"-F", `${flags}`
|
"-F", `${flags}`
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (fail_ci) {
|
if (fail_ci) {
|
||||||
execArgs.push(
|
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)
|
exec.exec("bash", execArgs, options)
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
if (fail_ci) {
|
if (fail_ci) {
|
||||||
|
|
|
||||||
31
index.js
31
index.js
|
|
@ -96,20 +96,17 @@ try {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bash_args_clean.length) {
|
if (name) {
|
||||||
for(const x of bash_args_clean) {
|
execArgs.push(
|
||||||
const arg = x.slice(0,2);
|
"-n", `${name}`
|
||||||
const val = x.slice(2).trim();
|
);
|
||||||
execArgs.push(
|
|
||||||
`${arg}`, `${val}`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
execArgs.push(
|
if (flags) {
|
||||||
"-n", `${name}`,
|
execArgs.push(
|
||||||
"-F", `${flags}`
|
"-F", `${flags}`
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (fail_ci) {
|
if (fail_ci) {
|
||||||
execArgs.push(
|
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)
|
exec.exec("bash", execArgs, options)
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
if (fail_ci) {
|
if (fail_ci) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue