Skip to content

Commit

Permalink
Repaired hashFiles call so if error was thrown, it was returned to pr…
Browse files Browse the repository at this point in the history
…ocess invoker (actions#1678)

* hashFiles.ts added exit status on promise action

* generated layoutbin/hashfiles/index.js
  • Loading branch information
nikola-jokic authored Feb 23, 2022
1 parent 934027d commit 460c32a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Misc/expressionFunc/hashFiles/src/hashFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ async function run(): Promise<void> {
}

run()
.then(out => {
console.log(out)
process.exit(0)
})
.catch(err => {
console.error(err)
process.exit(1)
})
10 changes: 9 additions & 1 deletion src/Misc/layoutbin/hashFiles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,15 @@ function run() {
}
});
}
run();
run()
.then(out => {
console.log(out);
process.exit(0);
})
.catch(err => {
console.error(err);
process.exit(1);
});


/***/ }),
Expand Down

0 comments on commit 460c32a

Please sign in to comment.