GitHubActionsEnvironmentInfo.

Workflow Property

Summary

Gets the GitHub Actions workflow information.

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
GitHubActionsWorkflowInfo The GitHub Actions workflow information.