mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 15:07:25 +00:00
implement xtra args for cli
This commit is contained in:
parent
ac042eaf0f
commit
508a540e69
4 changed files with 11 additions and 1 deletions
|
|
@ -65,6 +65,8 @@ inputs:
|
||||||
working-directory:
|
working-directory:
|
||||||
description: 'Directory in which to execute codecov.sh'
|
description: 'Directory in which to execute codecov.sh'
|
||||||
required: false
|
required: false
|
||||||
|
xtra_args:
|
||||||
|
required: false
|
||||||
branding:
|
branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
|
|
|
||||||
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -32307,6 +32307,7 @@ const buildCommitExec = () => {
|
||||||
const buildGeneralExec = () => {
|
const buildGeneralExec = () => {
|
||||||
const url = core.getInput('url');
|
const url = core.getInput('url');
|
||||||
const verbose = isTrue(core.getInput('verbose'));
|
const verbose = isTrue(core.getInput('verbose'));
|
||||||
|
const xtraArgs = core.getInput('xtra_args');
|
||||||
const args = [];
|
const args = [];
|
||||||
if (url) {
|
if (url) {
|
||||||
args.push('--enterprise-url', `${url}`);
|
args.push('--enterprise-url', `${url}`);
|
||||||
|
|
@ -32314,6 +32315,9 @@ const buildGeneralExec = () => {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
args.push('-v');
|
args.push('-v');
|
||||||
}
|
}
|
||||||
|
if (xtraArgs) {
|
||||||
|
args.push(xtraArgs);
|
||||||
|
}
|
||||||
return { args, verbose };
|
return { args, verbose };
|
||||||
};
|
};
|
||||||
const buildReportExec = () => {
|
const buildReportExec = () => {
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -77,6 +77,7 @@ const buildCommitExec = () => {
|
||||||
const buildGeneralExec = () => {
|
const buildGeneralExec = () => {
|
||||||
const url = core.getInput('url');
|
const url = core.getInput('url');
|
||||||
const verbose = isTrue(core.getInput('verbose'));
|
const verbose = isTrue(core.getInput('verbose'));
|
||||||
|
const xtraArgs = core.getInput('xtra_args');
|
||||||
const args = [];
|
const args = [];
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
|
|
@ -85,6 +86,9 @@ const buildGeneralExec = () => {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
args.push('-v');
|
args.push('-v');
|
||||||
}
|
}
|
||||||
|
if (xtraArgs) {
|
||||||
|
args.push(xtraArgs);
|
||||||
|
}
|
||||||
return {args, verbose};
|
return {args, verbose};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue