mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-07 19:47:25 +00:00
Add "working-directory:" setting
This commit is contained in:
parent
beb5a9626e
commit
55dde41e2b
2 changed files with 8 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ inputs:
|
||||||
verbose:
|
verbose:
|
||||||
description: 'Specify whether the Codecov output should be verbose'
|
description: 'Specify whether the Codecov output should be verbose'
|
||||||
required: false
|
required: false
|
||||||
|
working-directory:
|
||||||
|
description: 'Directory in which to execute codecov.sh'
|
||||||
|
required: false
|
||||||
branding:
|
branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
|
|
|
||||||
5
index.js
5
index.js
|
|
@ -14,6 +14,7 @@ try {
|
||||||
const dir = core.getInput("directory");
|
const dir = core.getInput("directory");
|
||||||
const write_path = core.getInput("path_to_write_report");
|
const write_path = core.getInput("path_to_write_report");
|
||||||
const verbose = core.getInput("verbose");
|
const verbose = core.getInput("verbose");
|
||||||
|
const working_dir = core.getInput("working-directory");
|
||||||
const xcode_derived_data = core.getInput("xcode_derived_data");
|
const xcode_derived_data = core.getInput("xcode_derived_data");
|
||||||
const xcode_package = core.getInput("xcode_package");
|
const xcode_package = core.getInput("xcode_package");
|
||||||
|
|
||||||
|
|
@ -137,6 +138,10 @@ try {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (working_dir) {
|
||||||
|
options.cwd = working_dir;
|
||||||
|
}
|
||||||
|
|
||||||
if (xcode_derived_data) {
|
if (xcode_derived_data) {
|
||||||
execArgs.push(
|
execArgs.push(
|
||||||
"-D", `${xcode_derived_data}`
|
"-D", `${xcode_derived_data}`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue