mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-09 00:26:25 +00:00
fix: working-directory input for all stages (#1272)
This commit is contained in:
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -32267,6 +32267,7 @@ const buildCommitExec = () => {
|
|||||||
const slug = core.getInput('slug');
|
const slug = core.getInput('slug');
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
||||||
|
const workingDir = core.getInput('working-directory');
|
||||||
const commitCommand = 'create-commit';
|
const commitCommand = 'create-commit';
|
||||||
const commitExecArgs = [];
|
const commitExecArgs = [];
|
||||||
const commitOptions = {};
|
const commitOptions = {};
|
||||||
@@ -32306,6 +32307,9 @@ const buildCommitExec = () => {
|
|||||||
if (failCi) {
|
if (failCi) {
|
||||||
commitExecArgs.push('-Z');
|
commitExecArgs.push('-Z');
|
||||||
}
|
}
|
||||||
|
if (workingDir) {
|
||||||
|
commitOptions.cwd = workingDir;
|
||||||
|
}
|
||||||
return { commitExecArgs, commitOptions, commitCommand };
|
return { commitExecArgs, commitOptions, commitCommand };
|
||||||
};
|
};
|
||||||
const buildGeneralExec = () => {
|
const buildGeneralExec = () => {
|
||||||
@@ -32330,6 +32334,7 @@ const buildReportExec = () => {
|
|||||||
const slug = core.getInput('slug');
|
const slug = core.getInput('slug');
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
||||||
|
const workingDir = core.getInput('working-directory');
|
||||||
const reportCommand = 'create-report';
|
const reportCommand = 'create-report';
|
||||||
const reportExecArgs = [];
|
const reportExecArgs = [];
|
||||||
const reportOptions = {};
|
const reportOptions = {};
|
||||||
@@ -32363,6 +32368,9 @@ const buildReportExec = () => {
|
|||||||
if (failCi) {
|
if (failCi) {
|
||||||
reportExecArgs.push('-Z');
|
reportExecArgs.push('-Z');
|
||||||
}
|
}
|
||||||
|
if (workingDir) {
|
||||||
|
reportOptions.cwd = workingDir;
|
||||||
|
}
|
||||||
return { reportExecArgs, reportOptions, reportCommand };
|
return { reportExecArgs, reportOptions, reportCommand };
|
||||||
};
|
};
|
||||||
const buildUploadExec = () => {
|
const buildUploadExec = () => {
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -26,6 +26,7 @@ const buildCommitExec = () => {
|
|||||||
const slug = core.getInput('slug');
|
const slug = core.getInput('slug');
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
||||||
|
const workingDir = core.getInput('working-directory');
|
||||||
|
|
||||||
const commitCommand = 'create-commit';
|
const commitCommand = 'create-commit';
|
||||||
const commitExecArgs = [];
|
const commitExecArgs = [];
|
||||||
@@ -72,6 +73,9 @@ const buildCommitExec = () => {
|
|||||||
if (failCi) {
|
if (failCi) {
|
||||||
commitExecArgs.push('-Z');
|
commitExecArgs.push('-Z');
|
||||||
}
|
}
|
||||||
|
if (workingDir) {
|
||||||
|
commitOptions.cwd = workingDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return {commitExecArgs, commitOptions, commitCommand};
|
return {commitExecArgs, commitOptions, commitCommand};
|
||||||
@@ -101,6 +105,7 @@ const buildReportExec = () => {
|
|||||||
const slug = core.getInput('slug');
|
const slug = core.getInput('slug');
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
||||||
|
const workingDir = core.getInput('working-directory');
|
||||||
|
|
||||||
|
|
||||||
const reportCommand = 'create-report';
|
const reportCommand = 'create-report';
|
||||||
@@ -141,6 +146,9 @@ const buildReportExec = () => {
|
|||||||
if (failCi) {
|
if (failCi) {
|
||||||
reportExecArgs.push('-Z');
|
reportExecArgs.push('-Z');
|
||||||
}
|
}
|
||||||
|
if (workingDir) {
|
||||||
|
reportOptions.cwd = workingDir;
|
||||||
|
}
|
||||||
|
|
||||||
return {reportExecArgs, reportOptions, reportCommand};
|
return {reportExecArgs, reportOptions, reportCommand};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user