mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +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:
|
||||
description: 'Directory in which to execute codecov.sh'
|
||||
required: false
|
||||
xtra_args:
|
||||
required: false
|
||||
branding:
|
||||
color: 'red'
|
||||
icon: 'umbrella'
|
||||
|
|
|
|||
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -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
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 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};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue