mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 14:37:24 +00:00
Trim arguments after splitting them
This commit is contained in:
parent
68d5f6d0be
commit
eb38f6167e
1 changed files with 3 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ const buildExec = () => {
|
||||||
execArgs.push('-e', envVarsArg.join(','));
|
execArgs.push('-e', envVarsArg.join(','));
|
||||||
}
|
}
|
||||||
if (functionalities) {
|
if (functionalities) {
|
||||||
functionalities.split(',').forEach((f) => {
|
functionalities.split(',').map((f) => f.trim()).forEach((f) => {
|
||||||
execArgs.push('-X', `${f}`);
|
execArgs.push('-X', `${f}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -102,12 +102,12 @@ const buildExec = () => {
|
||||||
execArgs.push('-f', `${file}`);
|
execArgs.push('-f', `${file}`);
|
||||||
}
|
}
|
||||||
if (files) {
|
if (files) {
|
||||||
files.split(',').forEach((f) => {
|
files.split(',').map((f) => f.trim()).forEach((f) => {
|
||||||
execArgs.push('-f', `${f}`);
|
execArgs.push('-f', `${f}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (flags) {
|
if (flags) {
|
||||||
flags.split(',').forEach((f) => {
|
flags.split(',').map((f) => f.trim()).forEach((f) => {
|
||||||
execArgs.push('-F', `${f}`);
|
execArgs.push('-F', `${f}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue