Summary
Gets the GitHub Actions workflow information.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Environment Info
Syntax
public GitHubActionsWorkflowInfo Workflow { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(
@"Workflow:
Workflow: {0}
Action: {1}
Actor: {2}",
BuildSystem.GitHubActions.Environment.Workflow.Workflow,
BuildSystem.GitHubActions.Environment.Workflow.Action,
BuildSystem.GitHubActions.Environment.Workflow.Actor
);
}
else
{
Information("Not running on GitHubActions");
}
Information(
@"Workflow:
Workflow: {0}
Action: {1}
Actor: {2}",
GitHubActions.Environment.Workflow.Workflow,
GitHubActions.Environment.Workflow.Action,
GitHubActions.Environment.Workflow.Actor
);
Value
Type | Description |
---|---|
Git |
The GitHub Actions workflow information. |