implement xtra args for cli

This commit is contained in:
Juho Majasaari 2024-01-24 15:15:14 +02:00
parent ac042eaf0f
commit 508a540e69
4 changed files with 11 additions and 1 deletions

View file

@ -65,6 +65,8 @@ inputs:
working-directory:
description: 'Directory in which to execute codecov.sh'
required: false
xtra_args:
required: false
branding:
color: 'red'
icon: 'umbrella'

4
dist/index.js vendored
View file

@ -32307,6 +32307,7 @@ const buildCommitExec = () => {
const buildGeneralExec = () => {
const url = core.getInput('url');
const verbose = isTrue(core.getInput('verbose'));
const xtraArgs = core.getInput('xtra_args');
const args = [];
if (url) {
args.push('--enterprise-url', `${url}`);
@ -32314,6 +32315,9 @@ const buildGeneralExec = () => {
if (verbose) {
args.push('-v');
}
if (xtraArgs) {
args.push(xtraArgs);
}
return { args, verbose };
};
const buildReportExec = () => {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -77,6 +77,7 @@ const buildCommitExec = () => {
const buildGeneralExec = () => {
const url = core.getInput('url');
const verbose = isTrue(core.getInput('verbose'));
const xtraArgs = core.getInput('xtra_args');
const args = [];
if (url) {
@ -85,6 +86,9 @@ const buildGeneralExec = () => {
if (verbose) {
args.push('-v');
}
if (xtraArgs) {
args.push(xtraArgs);
}
return {args, verbose};
};