Summary
Gets the operating system of the runner executing the job.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runner Info
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. |
