Skip to content

Commit f62c5ee

Browse files
authored
fix: working-directory input for all stages (#1272)
1 parent fdbfa4b commit f62c5ee

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

dist/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32267,6 +32267,7 @@ const buildCommitExec = () => {
3226732267
const slug = core.getInput('slug');
3226832268
const token = core.getInput('token');
3226932269
const failCi = isTrue(core.getInput('fail_ci_if_error'));
32270+
const workingDir = core.getInput('working-directory');
3227032271
const commitCommand = 'create-commit';
3227132272
const commitExecArgs = [];
3227232273
const commitOptions = {};
@@ -32306,6 +32307,9 @@ const buildCommitExec = () => {
3230632307
if (failCi) {
3230732308
commitExecArgs.push('-Z');
3230832309
}
32310+
if (workingDir) {
32311+
commitOptions.cwd = workingDir;
32312+
}
3230932313
return { commitExecArgs, commitOptions, commitCommand };
3231032314
};
3231132315
const buildGeneralExec = () => {
@@ -32330,6 +32334,7 @@ const buildReportExec = () => {
3233032334
const slug = core.getInput('slug');
3233132335
const token = core.getInput('token');
3233232336
const failCi = isTrue(core.getInput('fail_ci_if_error'));
32337+
const workingDir = core.getInput('working-directory');
3233332338
const reportCommand = 'create-report';
3233432339
const reportExecArgs = [];
3233532340
const reportOptions = {};
@@ -32363,6 +32368,9 @@ const buildReportExec = () => {
3236332368
if (failCi) {
3236432369
reportExecArgs.push('-Z');
3236532370
}
32371+
if (workingDir) {
32372+
reportOptions.cwd = workingDir;
32373+
}
3236632374
return { reportExecArgs, reportOptions, reportCommand };
3236732375
};
3236832376
const buildUploadExec = () => {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/buildExec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const buildCommitExec = () => {
2626
const slug = core.getInput('slug');
2727
const token = core.getInput('token');
2828
const failCi = isTrue(core.getInput('fail_ci_if_error'));
29+
const workingDir = core.getInput('working-directory');
2930

3031
const commitCommand = 'create-commit';
3132
const commitExecArgs = [];
@@ -72,6 +73,9 @@ const buildCommitExec = () => {
7273
if (failCi) {
7374
commitExecArgs.push('-Z');
7475
}
76+
if (workingDir) {
77+
commitOptions.cwd = workingDir;
78+
}
7579

7680

7781
return {commitExecArgs, commitOptions, commitCommand};
@@ -101,6 +105,7 @@ const buildReportExec = () => {
101105
const slug = core.getInput('slug');
102106
const token = core.getInput('token');
103107
const failCi = isTrue(core.getInput('fail_ci_if_error'));
108+
const workingDir = core.getInput('working-directory');
104109

105110

106111
const reportCommand = 'create-report';
@@ -141,6 +146,9 @@ const buildReportExec = () => {
141146
if (failCi) {
142147
reportExecArgs.push('-Z');
143148
}
149+
if (workingDir) {
150+
reportOptions.cwd = workingDir;
151+
}
144152

145153
return {reportExecArgs, reportOptions, reportCommand};
146154
};

0 commit comments

Comments
 (0)