mirror of
https://github.com/actions/runner.git
synced 2025-12-11 04:46:58 +00:00
Rename ConvertToJobContainer to ConvertToContainer
It converts serviceContainers too
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -233,7 +233,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static JobContainer ConvertToJobContainer(
|
internal static JobContainer ConvertToContainer(
|
||||||
TemplateContext context,
|
TemplateContext context,
|
||||||
TemplateToken value,
|
TemplateToken value,
|
||||||
bool allowExpressions = false)
|
bool allowExpressions = false)
|
||||||
@@ -340,7 +340,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
foreach (var servicePair in servicesMapping)
|
foreach (var servicePair in servicesMapping)
|
||||||
{
|
{
|
||||||
var networkAlias = servicePair.Key.AssertString("services key").Value;
|
var networkAlias = servicePair.Key.AssertString("services key").Value;
|
||||||
var container = ConvertToJobContainer(context, servicePair.Value);
|
var container = ConvertToContainer(context, servicePair.Value);
|
||||||
result.Add(new KeyValuePair<String, JobContainer>(networkAlias, container));
|
result.Add(new KeyValuePair<String, JobContainer>(networkAlias, container));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user