feat: catch error when calling the main function

This commit is contained in:
Alfi Maulana 2023-12-14 18:29:46 +07:00
parent 65845a480e
commit c21687f4b2
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4
2 changed files with 2 additions and 2 deletions

2
dist/index.mjs generated vendored
View File

@ -27302,7 +27302,7 @@ async function main() {
]);
}
}
main();
main().catch((err) => _actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(err));
})();

View File

@ -75,4 +75,4 @@ async function main() {
}
}
main();
main().catch((err) => core.setFailed(err));