GitHubActionsRunnerInfo.

ImageOS Property

Summary

Gets the runner image OS on hosted agents.

Syntax

public string ImageOS { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    var imageOs = BuildSystem.GitHubActions.Environment.Runner.ImageOS
        ?? BuildSystem.GitHubActions.Environment.Runner.OS;
    Information(@"Runner ImageOS: {0}", imageOs);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    var imageOs = GitHubActions.Environment.Runner.ImageOS
        ?? GitHubActions.Environment.Runner.OS;
    Information(@"Runner ImageOS: {0}", imageOs);
}

Value

Type Description
string The runner image OS on hosted agents.