Set failure

This commit is contained in:
Danny McCormick 2019-07-10 11:02:50 -04:00 committed by GitHub
parent bf857f4c3c
commit a3a044de72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();