fix: add back in working dir (#971)

This commit is contained in:
Tom Hu
2023-05-03 12:12:56 -04:00
committed by GitHub
parent 5bf250470e
commit b4dfea724f
5 changed files with 14 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ Codecov's Action supports inputs from the user. These inputs, along with their d
| `url` | Change the upload host (Enterprise use) | Optional
| `verbose` | Specify whether the Codecov output should be verbose | Optional
| `version` | Specify which version of the Codecov Uploader should be used. Defaults to `latest` | Optional
| `working-directory` | Directory in which to execute `codecov.sh` | Optional
| `xtra_args` | Add additional uploader args that may be missing in the Action | Optional

View File

@@ -104,6 +104,9 @@ inputs:
version:
description: 'Specify which version of the Codecov Uploader should be used. Defaults to `latest`'
required: false
working-directory:
description: 'Directory in which to execute codecov.sh'
required: false
xcode:
description: 'Run with xcode support'
required: false

4
dist/index.js vendored
View File

@@ -22120,6 +22120,7 @@ const buildExec = () => {
const upstream = core.getInput('upstream_proxy');
const url = core.getInput('url');
const verbose = isTrue(core.getInput('verbose'));
const workingDir = core.getInput('working-directory');
const xcode = core.getInput('xcode');
const xcodeArchivePath = core.getInput('xcode_archive_path');
const xtraArgs = core.getInput('xtra_args');
@@ -22259,6 +22260,9 @@ const buildExec = () => {
if (verbose) {
console.debug({ execArgs });
}
if (workingDir) {
options.cwd = workingDir;
}
if (xtraArgs) {
execArgs.push(`${xtraArgs}`);
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -50,6 +50,7 @@ const buildExec = () => {
const upstream = core.getInput('upstream_proxy');
const url = core.getInput('url');
const verbose = isTrue(core.getInput('verbose'));
const workingDir = core.getInput('working-directory');
const xcode = core.getInput('xcode');
const xcodeArchivePath = core.getInput('xcode_archive_path');
const xtraArgs = core.getInput('xtra_args');
@@ -206,6 +207,10 @@ const buildExec = () => {
console.debug({execArgs});
}
if (workingDir) {
options.cwd = workingDir;
}
if (xtraArgs) {
execArgs.push(`${xtraArgs}`);
}