Summary
Gets the GitHub Actions commands.
- Namespace
- Cake
.Common .Build .GitHubActions - Containing Type
- Git
Hub Actions Provider
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 |
|---|---|
| Git |
The GitHub Actions commands. |
