Summary
Gets the runner image version on hosted agents.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runner Info
Syntax
public string ImageVersion { get; }
Examples
if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Runner ImageVersion: {0}", BuildSystem.GitHubActions.Environment.Runner.ImageVersion);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
Information(@"Runner ImageVersion: {0}", GitHubActions.Environment.Runner.ImageVersion);
}
Value
| Type | Description |
|---|---|
| string | The runner image version on hosted agents. |
