Summary
Gets the runner image OS on hosted agents.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runner Info
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. |
