Properly terminating execution if invalid input caused an exception (closes #1)

This commit is contained in:
svartalf
2019-10-10 11:16:23 +03:00
parent 569b46e9ff
commit 60242e0faa
3 changed files with 8 additions and 3 deletions
+1 -2
View File
@@ -82,9 +82,8 @@ export async function run(actionInput: input.Input): Promise<void> {
}
async function main(): Promise<void> {
const actionInput = input.get();
try {
const actionInput = input.get();
await run(actionInput);
} catch (error) {
core.setFailed(error.message);