@@ -26,6 +26,7 @@ const buildCommitExec = () => {
26
26
const slug = core . getInput ( 'slug' ) ;
27
27
const token = core . getInput ( 'token' ) ;
28
28
const failCi = isTrue ( core . getInput ( 'fail_ci_if_error' ) ) ;
29
+ const workingDir = core . getInput ( 'working-directory' ) ;
29
30
30
31
const commitCommand = 'create-commit' ;
31
32
const commitExecArgs = [ ] ;
@@ -72,6 +73,9 @@ const buildCommitExec = () => {
72
73
if ( failCi ) {
73
74
commitExecArgs . push ( '-Z' ) ;
74
75
}
76
+ if ( workingDir ) {
77
+ commitOptions . cwd = workingDir ;
78
+ }
75
79
76
80
77
81
return { commitExecArgs, commitOptions, commitCommand} ;
@@ -101,6 +105,7 @@ const buildReportExec = () => {
101
105
const slug = core . getInput ( 'slug' ) ;
102
106
const token = core . getInput ( 'token' ) ;
103
107
const failCi = isTrue ( core . getInput ( 'fail_ci_if_error' ) ) ;
108
+ const workingDir = core . getInput ( 'working-directory' ) ;
104
109
105
110
106
111
const reportCommand = 'create-report' ;
@@ -141,6 +146,9 @@ const buildReportExec = () => {
141
146
if ( failCi ) {
142
147
reportExecArgs . push ( '-Z' ) ;
143
148
}
149
+ if ( workingDir ) {
150
+ reportOptions . cwd = workingDir ;
151
+ }
144
152
145
153
return { reportExecArgs, reportOptions, reportCommand} ;
146
154
} ;
0 commit comments