Public Access
Properly terminating execution if invalid input caused an exception (closes #1)
This commit is contained in:
+1
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user