GitHubActionsRunnerInfo.

OS Property

Summary

Gets the operating system of the runner executing the job.

Syntax

public string OS { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Runner OS: {0}", BuildSystem.GitHubActions.Environment.Runner.OS);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    Information(@"Runner OS: {0}", GitHubActions.Environment.Runner.OS);
}

Value

Type Description
string The operating system of the runner executing the job.