log runner group name (#696)

* log runner group name

* linting
This commit is contained in:
Hayden Faulds
2020-10-16 14:56:06 +01:00
committed by GitHub
parent c18c8746db
commit 2e3b03623f

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
@@ -74,6 +74,10 @@ namespace GitHub.Runner.Worker
{
// print out HostName for self-hosted runner
context.Output($"Runner name: '{setting.AgentName}'");
if (message.Variables.TryGetValue("system.runnerGroupName", out VariableValue runnerGroupName))
{
context.Output($"Runner group name: '{runnerGroupName.Value}'");
}
context.Output($"Machine name: '{Environment.MachineName}'");
}
}