diff --git a/src/main.ts b/src/main.ts index 195af81..ffce150 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,12 @@ import * as core from '@actions/core'; async function run() { - const myInput = core.getInput('myInput'); - core.debug(`Hello ${myInput}`) + try { + const myInput = core.getInput('myInput'); + core.debug(`Hello ${myInput}`); + } catch (error) { + core.setFailed(error.message); + } } -run(); \ No newline at end of file +run();