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