diff --git a/src/Runner.Worker/JobExtension.cs b/src/Runner.Worker/JobExtension.cs index 6b3c07830..e68f5cd4c 100644 --- a/src/Runner.Worker/JobExtension.cs +++ b/src/Runner.Worker/JobExtension.cs @@ -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}'"); } }