GitHubActionsProvider.

Commands Property

Summary

Gets the GitHub Actions commands.

Syntax

public GitHubActionsCommands Commands { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    BuildSystem.GitHubActions.Commands.Notice("Build started");
    BuildSystem.GitHubActions.Commands.SetOutputParameter(
        "cake_version",
        Context.Environment.Runtime.CakeVersion.ToString(3));
    BuildSystem.GitHubActions.Commands.SetStepSummary("## Cake Version\n" +
        Context.Environment.Runtime.CakeVersion.ToString(3));
}
else
{
    Information("Not running on GitHub Actions");
}

Value

Type Description
GitHubActionsCommands The GitHub Actions commands.