@@ -32266,6 +32266,7 @@ const buildCommitExec = () => {
3226632266 const overridePr = core.getInput('override_pr');
3226732267 const slug = core.getInput('slug');
3226832268 const token = core.getInput('token');
32269+ const failCi = isTrue(core.getInput('fail_ci_if_error'));
3226932270 const commitCommand = 'create-commit';
3227032271 const commitExecArgs = [];
3227132272 const commitOptions = {};
@@ -32302,12 +32303,19 @@ const buildCommitExec = () => {
3230232303 if (slug) {
3230332304 commitExecArgs.push('--slug', `${slug}`);
3230432305 }
32306+ if (failCi) {
32307+ commitExecArgs.push('-Z');
32308+ }
3230532309 return { commitExecArgs, commitOptions, commitCommand };
3230632310};
3230732311const buildGeneralExec = () => {
32312+ const codecovYmlPath = core.getInput('codecov_yml_path');
3230832313 const url = core.getInput('url');
3230932314 const verbose = isTrue(core.getInput('verbose'));
3231032315 const args = [];
32316+ if (codecovYmlPath) {
32317+ args.push('--codecov-yml-path', `${codecovYmlPath}`);
32318+ }
3231132319 if (url) {
3231232320 args.push('--enterprise-url', `${url}`);
3231332321 }
@@ -32318,8 +32326,10 @@ const buildGeneralExec = () => {
3231832326};
3231932327const buildReportExec = () => {
3232032328 const overrideCommit = core.getInput('override_commit');
32329+ const overridePr = core.getInput('override_pr');
3232132330 const slug = core.getInput('slug');
3232232331 const token = core.getInput('token');
32332+ const failCi = isTrue(core.getInput('fail_ci_if_error'));
3232332333 const reportCommand = 'create-report';
3232432334 const reportExecArgs = [];
3232532335 const reportOptions = {};
@@ -32341,33 +32351,49 @@ const buildReportExec = () => {
3234132351 `${context.eventName}` == 'pull_request_target') {
3234232352 reportExecArgs.push('-C', `${context.payload.pull_request.head.sha}`);
3234332353 }
32354+ if (overridePr) {
32355+ reportExecArgs.push('-P', `${overridePr}`);
32356+ }
32357+ else if (`${context.eventName}` == 'pull_request_target') {
32358+ reportExecArgs.push('-P', `${context.payload.number}`);
32359+ }
3234432360 if (slug) {
3234532361 reportExecArgs.push('--slug', `${slug}`);
3234632362 }
32363+ if (failCi) {
32364+ reportExecArgs.push('-Z');
32365+ }
3234732366 return { reportExecArgs, reportOptions, reportCommand };
3234832367};
3234932368const buildUploadExec = () => {
32350- const envVars = core.getInput('env_vars');
32369+ const disableFileFixes = isTrue(core.getInput('disable_file_fixes'));
32370+ const disableSearch = isTrue(core.getInput('disable_search'));
3235132371 const dryRun = isTrue(core.getInput('dry_run'));
32372+ const envVars = core.getInput('env_vars');
32373+ const exclude = core.getInput('exclude');
3235232374 const failCi = isTrue(core.getInput('fail_ci_if_error'));
3235332375 const file = core.getInput('file');
3235432376 const files = core.getInput('files');
3235532377 const flags = core.getInput('flags');
32378+ const handleNoReportsFound = isTrue(core.getInput('handle_no_reports_found'));
32379+ const jobCode = core.getInput('job_code');
3235632380 const name = core.getInput('name');
3235732381 const os = core.getInput('os');
3235832382 const overrideBranch = core.getInput('override_branch');
3235932383 const overrideBuild = core.getInput('override_build');
32384+ const overrideBuildUrl = core.getInput('override_build_url');
3236032385 const overrideCommit = core.getInput('override_commit');
3236132386 const overridePr = core.getInput('override_pr');
32387+ const plugin = core.getInput('plugin');
3236232388 const plugins = core.getInput('plugins');
32389+ const reportCode = core.getInput('report_code');
3236332390 const rootDir = core.getInput('root_dir');
3236432391 const searchDir = core.getInput('directory');
3236532392 const slug = core.getInput('slug');
3236632393 const token = core.getInput('token');
3236732394 let uploaderVersion = core.getInput('version');
32395+ const useLegacyUploadEndpoint = isTrue(core.getInput('use_legacy_upload_endpoint'));
3236832396 const workingDir = core.getInput('working-directory');
32369- const plugin = core.getInput('plugin');
32370- const exclude = core.getInput('exclude');
3237132397 const uploadExecArgs = [];
3237232398 const uploadCommand = 'do-upload';
3237332399 const uploadOptions = {};
@@ -32387,18 +32413,24 @@ const buildUploadExec = () => {
3238732413 envVarsArg.push(envVarClean);
3238832414 }
3238932415 }
32390- if (name) {
32391- uploadExecArgs.push('-n', `${name}`);
32392- }
3239332416 if (token) {
3239432417 uploadOptions.env.CODECOV_TOKEN = token;
3239532418 }
32419+ if (disableFileFixes) {
32420+ uploadExecArgs.push('--disable-file-fixes');
32421+ }
32422+ if (disableSearch) {
32423+ uploadExecArgs.push('--disable-search');
32424+ }
3239632425 if (dryRun) {
3239732426 uploadExecArgs.push('-d');
3239832427 }
3239932428 if (envVarsArg.length) {
3240032429 uploadExecArgs.push('-e', envVarsArg.join(','));
3240132430 }
32431+ if (exclude) {
32432+ uploadExecArgs.push('--exclude', `${exclude}`);
32433+ }
3240232434 if (failCi) {
3240332435 uploadExecArgs.push('-Z');
3240432436 }
@@ -32415,12 +32447,24 @@ const buildUploadExec = () => {
3241532447 uploadExecArgs.push('-F', `${f}`);
3241632448 });
3241732449 }
32450+ if (handleNoReportsFound) {
32451+ uploadExecArgs.push('--handle-no-reports-found');
32452+ }
32453+ if (jobCode) {
32454+ uploadExecArgs.push('--job-code', `${jobCode}`);
32455+ }
32456+ if (name) {
32457+ uploadExecArgs.push('-n', `${name}`);
32458+ }
3241832459 if (overrideBranch) {
3241932460 uploadExecArgs.push('-B', `${overrideBranch}`);
3242032461 }
3242132462 if (overrideBuild) {
3242232463 uploadExecArgs.push('-b', `${overrideBuild}`);
3242332464 }
32465+ if (overrideBuildUrl) {
32466+ uploadExecArgs.push('--build-url', `${overrideBuildUrl}`);
32467+ }
3242432468 if (overrideCommit) {
3242532469 uploadExecArgs.push('-C', `${overrideCommit}`);
3242632470 }
@@ -32434,11 +32478,17 @@ const buildUploadExec = () => {
3243432478 else if (`${context.eventName}` == 'pull_request_target') {
3243532479 uploadExecArgs.push('-P', `${context.payload.number}`);
3243632480 }
32481+ if (plugin) {
32482+ uploadExecArgs.push('--plugin', `${plugin}`);
32483+ }
3243732484 if (plugins) {
3243832485 plugins.split(',').map((p) => p.trim()).forEach((p) => {
3243932486 uploadExecArgs.push('--plugin', `${p}`);
3244032487 });
3244132488 }
32489+ if (reportCode) {
32490+ uploadExecArgs.push('--report-code', `${reportCode}`);
32491+ }
3244232492 if (rootDir) {
3244332493 uploadExecArgs.push('--network-root-folder', `${rootDir}`);
3244432494 }
@@ -32451,15 +32501,12 @@ const buildUploadExec = () => {
3245132501 if (workingDir) {
3245232502 uploadOptions.cwd = workingDir;
3245332503 }
32454- if (plugin) {
32455- uploadExecArgs.push('--plugin', `${plugin}`);
32456- }
32457- if (exclude) {
32458- uploadExecArgs.push('--exclude', `${exclude}`);
32459- }
3246032504 if (uploaderVersion == '') {
3246132505 uploaderVersion = 'latest';
3246232506 }
32507+ if (useLegacyUploadEndpoint) {
32508+ uploadExecArgs.push('--legacy');
32509+ }
3246332510 return {
3246432511 uploadExecArgs,
3246532512 uploadOptions,
0 commit comments