setFailed function

void setFailed({
  1. required String message,
})

Sets the action status to failed.

When the action exits it will be with an exit code of 1

Implementation

void setFailed({required String message}) {
  exitCode = ExitCode.failure;

  error(message: message);
}