fix: trailing comma in files and flags
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
files: ./demo/calculator/junit.xml
|
||||
files: ./demo/calculator/junit.xml,
|
||||
flags: ${{ matrix.os }}
|
||||
verbose: true
|
||||
token: ${{ secrets.CODECOV_ORG_TOKEN }}
|
||||
|
||||
Vendored
+6
-2
@@ -32244,12 +32244,16 @@ const buildUploadArgs = (token, envVars, failCi) => {
|
||||
}
|
||||
if (files) {
|
||||
files.split(',').map((f) => f.trim()).forEach((f) => {
|
||||
uploadExecArgs.push('-f', `${f}`);
|
||||
if (f) {
|
||||
uploadExecArgs.push('-f', `${f}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (flags) {
|
||||
flags.split(',').map((f) => f.trim()).forEach((f) => {
|
||||
uploadExecArgs.push('-F', `${f}`);
|
||||
if (f) {
|
||||
uploadExecArgs.push('-F', `${f}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (handleNoReportsFound) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+7
-3
@@ -117,12 +117,16 @@ const buildUploadArgs = (token: string, envVars, failCi: boolean) => {
|
||||
}
|
||||
if (files) {
|
||||
files.split(',').map((f) => f.trim()).forEach((f) => {
|
||||
uploadExecArgs.push('-f', `${f}`);
|
||||
if (f) {
|
||||
uploadExecArgs.push('-f', `${f}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (flags) {
|
||||
flags.split(',').map((f) => f.trim()).forEach((f) => {
|
||||
uploadExecArgs.push('-F', `${f}`);
|
||||
if (f) {
|
||||
uploadExecArgs.push('-F', `${f}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (handleNoReportsFound) {
|
||||
@@ -210,7 +214,7 @@ const buildExecutionOptions = (failCi: boolean, verbose: boolean) => {
|
||||
|
||||
const generalArgs = buildGeneralArgs(verbose);
|
||||
const {uploadExecArgs, uploadCommand} =
|
||||
buildUploadArgs(token, cleanedEnvVars, failCi);
|
||||
buildUploadArgs(token, cleanedEnvVars, failCi);
|
||||
const executionEnvironment = buildExecutionEnvironment(token, cleanedEnvVars);
|
||||
|
||||
return {generalArgs, uploadCommand, uploadExecArgs, executionEnvironment};
|
||||
|
||||
Reference in New Issue
Block a user