GitHubActionsRunnerInfo.

Name Property

Summary

Gets the name of the runner executing the job.

Syntax

public string Name { get; }

Examples

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

Value

Type Description
string The name of the runner executing the job.