GitHubActionsEnvironmentInfo.

Runtime Property

Summary

Gets GitHub Actions runtime information.

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
GitHubActionsRuntimeInfo The GitHub Actions runtime information.