mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-11 04:41:38 +00:00
fix: handle trailing commas (#1470)
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
This commit is contained in:
@@ -311,7 +311,9 @@ const buildUploadExec = async (): Promise<{
|
||||
}
|
||||
if (files) {
|
||||
files.split(',').map((f) => f.trim()).forEach((f) => {
|
||||
uploadExecArgs.push('-f', `${f}`);
|
||||
if (f.length > 0) { // this handles trailing commas
|
||||
uploadExecArgs.push('-f', `${f}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (flags) {
|
||||
|
||||
Reference in New Issue
Block a user