@@ -32266,6 +32266,7 @@ const buildCommitExec = () => {
32266
32266
const overridePr = core.getInput('override_pr');
32267
32267
const slug = core.getInput('slug');
32268
32268
const token = core.getInput('token');
32269
+ const failCi = isTrue(core.getInput('fail_ci_if_error'));
32269
32270
const commitCommand = 'create-commit';
32270
32271
const commitExecArgs = [];
32271
32272
const commitOptions = {};
@@ -32302,12 +32303,19 @@ const buildCommitExec = () => {
32302
32303
if (slug) {
32303
32304
commitExecArgs.push('--slug', `${slug}`);
32304
32305
}
32306
+ if (failCi) {
32307
+ commitExecArgs.push('-Z');
32308
+ }
32305
32309
return { commitExecArgs, commitOptions, commitCommand };
32306
32310
};
32307
32311
const buildGeneralExec = () => {
32312
+ const codecovYmlPath = core.getInput('codecov_yml_path');
32308
32313
const url = core.getInput('url');
32309
32314
const verbose = isTrue(core.getInput('verbose'));
32310
32315
const args = [];
32316
+ if (codecovYmlPath) {
32317
+ args.push('--codecov-yml-path', `${codecovYmlPath}`);
32318
+ }
32311
32319
if (url) {
32312
32320
args.push('--enterprise-url', `${url}`);
32313
32321
}
@@ -32318,8 +32326,10 @@ const buildGeneralExec = () => {
32318
32326
};
32319
32327
const buildReportExec = () => {
32320
32328
const overrideCommit = core.getInput('override_commit');
32329
+ const overridePr = core.getInput('override_pr');
32321
32330
const slug = core.getInput('slug');
32322
32331
const token = core.getInput('token');
32332
+ const failCi = isTrue(core.getInput('fail_ci_if_error'));
32323
32333
const reportCommand = 'create-report';
32324
32334
const reportExecArgs = [];
32325
32335
const reportOptions = {};
@@ -32341,33 +32351,49 @@ const buildReportExec = () => {
32341
32351
`${context.eventName}` == 'pull_request_target') {
32342
32352
reportExecArgs.push('-C', `${context.payload.pull_request.head.sha}`);
32343
32353
}
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
+ }
32344
32360
if (slug) {
32345
32361
reportExecArgs.push('--slug', `${slug}`);
32346
32362
}
32363
+ if (failCi) {
32364
+ reportExecArgs.push('-Z');
32365
+ }
32347
32366
return { reportExecArgs, reportOptions, reportCommand };
32348
32367
};
32349
32368
const 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'));
32351
32371
const dryRun = isTrue(core.getInput('dry_run'));
32372
+ const envVars = core.getInput('env_vars');
32373
+ const exclude = core.getInput('exclude');
32352
32374
const failCi = isTrue(core.getInput('fail_ci_if_error'));
32353
32375
const file = core.getInput('file');
32354
32376
const files = core.getInput('files');
32355
32377
const flags = core.getInput('flags');
32378
+ const handleNoReportsFound = isTrue(core.getInput('handle_no_reports_found'));
32379
+ const jobCode = core.getInput('job_code');
32356
32380
const name = core.getInput('name');
32357
32381
const os = core.getInput('os');
32358
32382
const overrideBranch = core.getInput('override_branch');
32359
32383
const overrideBuild = core.getInput('override_build');
32384
+ const overrideBuildUrl = core.getInput('override_build_url');
32360
32385
const overrideCommit = core.getInput('override_commit');
32361
32386
const overridePr = core.getInput('override_pr');
32387
+ const plugin = core.getInput('plugin');
32362
32388
const plugins = core.getInput('plugins');
32389
+ const reportCode = core.getInput('report_code');
32363
32390
const rootDir = core.getInput('root_dir');
32364
32391
const searchDir = core.getInput('directory');
32365
32392
const slug = core.getInput('slug');
32366
32393
const token = core.getInput('token');
32367
32394
let uploaderVersion = core.getInput('version');
32395
+ const useLegacyUploadEndpoint = isTrue(core.getInput('use_legacy_upload_endpoint'));
32368
32396
const workingDir = core.getInput('working-directory');
32369
- const plugin = core.getInput('plugin');
32370
- const exclude = core.getInput('exclude');
32371
32397
const uploadExecArgs = [];
32372
32398
const uploadCommand = 'do-upload';
32373
32399
const uploadOptions = {};
@@ -32387,18 +32413,24 @@ const buildUploadExec = () => {
32387
32413
envVarsArg.push(envVarClean);
32388
32414
}
32389
32415
}
32390
- if (name) {
32391
- uploadExecArgs.push('-n', `${name}`);
32392
- }
32393
32416
if (token) {
32394
32417
uploadOptions.env.CODECOV_TOKEN = token;
32395
32418
}
32419
+ if (disableFileFixes) {
32420
+ uploadExecArgs.push('--disable-file-fixes');
32421
+ }
32422
+ if (disableSearch) {
32423
+ uploadExecArgs.push('--disable-search');
32424
+ }
32396
32425
if (dryRun) {
32397
32426
uploadExecArgs.push('-d');
32398
32427
}
32399
32428
if (envVarsArg.length) {
32400
32429
uploadExecArgs.push('-e', envVarsArg.join(','));
32401
32430
}
32431
+ if (exclude) {
32432
+ uploadExecArgs.push('--exclude', `${exclude}`);
32433
+ }
32402
32434
if (failCi) {
32403
32435
uploadExecArgs.push('-Z');
32404
32436
}
@@ -32415,12 +32447,24 @@ const buildUploadExec = () => {
32415
32447
uploadExecArgs.push('-F', `${f}`);
32416
32448
});
32417
32449
}
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
+ }
32418
32459
if (overrideBranch) {
32419
32460
uploadExecArgs.push('-B', `${overrideBranch}`);
32420
32461
}
32421
32462
if (overrideBuild) {
32422
32463
uploadExecArgs.push('-b', `${overrideBuild}`);
32423
32464
}
32465
+ if (overrideBuildUrl) {
32466
+ uploadExecArgs.push('--build-url', `${overrideBuildUrl}`);
32467
+ }
32424
32468
if (overrideCommit) {
32425
32469
uploadExecArgs.push('-C', `${overrideCommit}`);
32426
32470
}
@@ -32434,11 +32478,17 @@ const buildUploadExec = () => {
32434
32478
else if (`${context.eventName}` == 'pull_request_target') {
32435
32479
uploadExecArgs.push('-P', `${context.payload.number}`);
32436
32480
}
32481
+ if (plugin) {
32482
+ uploadExecArgs.push('--plugin', `${plugin}`);
32483
+ }
32437
32484
if (plugins) {
32438
32485
plugins.split(',').map((p) => p.trim()).forEach((p) => {
32439
32486
uploadExecArgs.push('--plugin', `${p}`);
32440
32487
});
32441
32488
}
32489
+ if (reportCode) {
32490
+ uploadExecArgs.push('--report-code', `${reportCode}`);
32491
+ }
32442
32492
if (rootDir) {
32443
32493
uploadExecArgs.push('--network-root-folder', `${rootDir}`);
32444
32494
}
@@ -32451,15 +32501,12 @@ const buildUploadExec = () => {
32451
32501
if (workingDir) {
32452
32502
uploadOptions.cwd = workingDir;
32453
32503
}
32454
- if (plugin) {
32455
- uploadExecArgs.push('--plugin', `${plugin}`);
32456
- }
32457
- if (exclude) {
32458
- uploadExecArgs.push('--exclude', `${exclude}`);
32459
- }
32460
32504
if (uploaderVersion == '') {
32461
32505
uploaderVersion = 'latest';
32462
32506
}
32507
+ if (useLegacyUploadEndpoint) {
32508
+ uploadExecArgs.push('--legacy');
32509
+ }
32463
32510
return {
32464
32511
uploadExecArgs,
32465
32512
uploadOptions,
0 commit comments