Summary
Gets GitHub Actions runtime information.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Environment Info
Syntax
public GitHubActionsRuntimeInfo Runtime { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(
@"Runtime:
IsRuntimeAvailable: {0}
OutputPath: {1}
StepSummary: {2}",
BuildSystem.GitHubActions.Environment.Runtime.IsRuntimeAvailable,
BuildSystem.GitHubActions.Environment.Runtime.OutputPath,
BuildSystem.GitHubActions.Environment.Runtime.StepSummary
);
}
else
{
Information("Not running on GitHubActions");
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(
@"Runtime:
IsRuntimeAvailable: {0}
OutputPath: {1}
StepSummary: {2}",
GitHubActions.Environment.Runtime.IsRuntimeAvailable,
GitHubActions.Environment.Runtime.OutputPath,
GitHubActions.Environment.Runtime.StepSummary
);
}
else
{
Information("Not running on GitHubActions");
}
Value
| Type | Description |
|---|---|
| Git |
The GitHub Actions runtime information. |
