GitHubActionsRunnerInfo.

ImageVersion Property

Summary

Gets the runner image version on hosted agents.

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.