fix: return code
This commit is contained in:
parent
af6a70678b
commit
23d6ba9aa3
|
@ -60,8 +60,9 @@ else {
|
||||||
const forwardProcessCode = (fn) => async (...args) => {
|
const forwardProcessCode = (fn) => async (...args) => {
|
||||||
const child = await fn(...args);
|
const child = await fn(...args);
|
||||||
if ('object' !== typeof child) {
|
if ('object' !== typeof child) {
|
||||||
debug('action returned code %d', child);
|
const code = 'undefined' !== typeof child ? child : 0;
|
||||||
process.exitCode = child;
|
debug('action returned code %d', code);
|
||||||
|
process.exitCode = code;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user