Skip to content

Commit d754daa

Browse files
author
Amelia Wattenberger
authored
Merge pull request #33 from ageorgou/build-catch
Propagate the fix from #32
2 parents 5f12849 + a0c98bb commit d754daa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,11 +1363,11 @@ Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
13631363
command_1.issue("echo", enabled ? "on" : "off");
13641364
}
13651365
exports2.setCommandEcho = setCommandEcho;
1366-
function setFailed(message) {
1366+
function setFailed2(message) {
13671367
process.exitCode = ExitCode.Failure;
13681368
error(message);
13691369
}
1370-
exports2.setFailed = setFailed;
1370+
exports2.setFailed = setFailed2;
13711371
function isDebug() {
13721372
return process.env["RUNNER_DEBUG"] === "1";
13731373
}
@@ -20635,7 +20635,9 @@ var main = async () => {
2063520635
}
2063620636
console.log("All set!");
2063720637
};
20638-
main();
20638+
main().catch((e3) => {
20639+
core.setFailed(e3);
20640+
});
2063920641
function execWithOutput(command2, args) {
2064020642
return new Promise((resolve, reject) => {
2064120643
try {

0 commit comments

Comments
 (0)