fix: working-directory input for all stages (#1272)

This commit is contained in:
Bo Anderson
2024-02-06 17:53:39 +00:00
committed by GitHub
parent fdbfa4b889
commit f62c5eebfe
3 changed files with 17 additions and 1 deletions

8
dist/index.js vendored
View File

@@ -32267,6 +32267,7 @@ const buildCommitExec = () => {
const slug = core.getInput('slug');
const token = core.getInput('token');
const failCi = isTrue(core.getInput('fail_ci_if_error'));
const workingDir = core.getInput('working-directory');
const commitCommand = 'create-commit';
const commitExecArgs = [];
const commitOptions = {};
@@ -32306,6 +32307,9 @@ const buildCommitExec = () => {
if (failCi) {
commitExecArgs.push('-Z');
}
if (workingDir) {
commitOptions.cwd = workingDir;
}
return { commitExecArgs, commitOptions, commitCommand };
};
const buildGeneralExec = () => {
@@ -32330,6 +32334,7 @@ const buildReportExec = () => {
const slug = core.getInput('slug');
const token = core.getInput('token');
const failCi = isTrue(core.getInput('fail_ci_if_error'));
const workingDir = core.getInput('working-directory');
const reportCommand = 'create-report';
const reportExecArgs = [];
const reportOptions = {};
@@ -32363,6 +32368,9 @@ const buildReportExec = () => {
if (failCi) {
reportExecArgs.push('-Z');
}
if (workingDir) {
reportOptions.cwd = workingDir;
}
return { reportExecArgs, reportOptions, reportCommand };
};
const buildUploadExec = () => {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long