mirror of
https://github.com/actions/runner.git
synced 2026-01-10 04:28:20 +08:00
Check runner group when there is only default runner group. (#1172)
* Check runner group when there is only `default` runner group. * L0
This commit is contained in:
@@ -165,7 +165,7 @@ namespace GitHub.Runner.Listener.Configuration
|
||||
List<TaskAgentPool> agentPools = await _runnerServer.GetAgentPoolsAsync();
|
||||
TaskAgentPool defaultPool = agentPools?.Where(x => x.IsInternal).FirstOrDefault();
|
||||
|
||||
if (agentPools?.Where(x => !x.IsHosted).Count() > 1)
|
||||
if (agentPools?.Where(x => !x.IsHosted).Count() > 0)
|
||||
{
|
||||
poolName = command.GetRunnerGroupName(defaultPool?.Name);
|
||||
_term.WriteLine();
|
||||
|
||||
Reference in New Issue
Block a user