GitHubActionsCommands.

SetStepSummary(string) Method

Summary

Creates or updates the step summary for a GitHub workflow.

Syntax

public void SetStepSummary(string summary)

Examples

if (GitHubActions.IsRunningOnGitHubActions)
{
    GitHubActions.Commands.SetStepSummary(
        $"## Cake Version\n{Context.Environment.Runtime.CakeVersion.ToString(3)}");
}

Parameters

Name Type Description
summary string The step summary.

Return Value

Type Description
void