function failOrError(message, failOnError) {
    // if we report any failure, consider the action to have failed, may not make the build fail
    core.setOutput('failed', true);
    if (failOnError) {
        core.setFailed(message);
    }
    else {
        core.error(message);
    }
}
/**
 * Will automatically either report the message to the log, or mark the action as failed. Additionally defining the output failed, allowing it to be read in by other actions
 */
Will automatically either report the message to the log, or mark the action as failed. Additionally defining the output failed, allowing it to be read in by other actions
Will automatically either report the message to the log or mark the action as failed . Additionally defining the output failed allowing it to be read in by other actions
function failOrError(message, failOnError) {
    core.setOutput('failed', true);
    if (failOnError) {
        core.setFailed(message);
    }
    else {
        core.error(message);
    }
}
function failOrError ( message , failOnError ) { core . setOutput ( 'failed' , true ) ; if ( failOnError ) { core . setFailed ( message ) ; } else { core . error ( message ) ; } }
Will automatically either report the message to the log, or mark the action as failed.
Will automatically either report the message to the log or mark the action as failed .
// if we report any failure, consider the action to have failed, may not make the build fail