Set failure
This commit is contained in:
parent
bf857f4c3c
commit
a3a044de72
10
src/main.ts
10
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();
|
||||
run();
|
||||
|
|
Loading…
Reference in New Issue