GitHubActionsCommands.

Error(string, GitHubActionsAnnotation) Method

Summary

Write error message to the build log.

Syntax

public void Error(string message, GitHubActionsAnnotation annotation = null)

Examples

if (GitHubActions.IsRunningOnGitHubActions)
{
    GitHubActions.Commands.Error("This is an error message");
}

Parameters

Name Type Description
message string The message.
annotation GitHubActionsAnnotation The annotation.

Return Value

Type Description
void