Runs the main function of a GitHub Action and reports a failure.
If main throws or rejects, the action fails through core.setFailed: the
message of the error and of every cause is logged as an error annotation, and
process.exitCode is set to 1. The stack trace is logged with core.debug,
visible only in debug logs. The process is not ended, so pending output and
handles complete as usual.
Runs the main function of a GitHub Action and reports a failure.
If
mainthrows or rejects, the action fails throughcore.setFailed: the message of the error and of every cause is logged as an error annotation, andprocess.exitCodeis set to 1. The stack trace is logged withcore.debug, visible only in debug logs. The process is not ended, so pending output and handles complete as usual.