revert back

This commit is contained in:
Ethan Chiu
2020-07-08 11:16:08 -04:00
parent 9a1dd80bcb
commit d2d0ecf1ed
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ namespace GitHub.DistributedTask.ObjectTemplating
Boolean omitHeader = false)
{
TemplateToken result;
if (!omitHeader)
{
if (fileId != null)

View File

@@ -166,6 +166,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
if (token != null && token.Type != TokenType.Null)
{
var context = CreateContext(null, null, setMissingContext: false);
// TODO: we might want to to have a bool to prevent it from filling in with missing context w/ dummy variables
try
{
token = TemplateEvaluator.Evaluate(context, PipelineTemplateConstants.StepsInTemplate, token, 0, null, omitHeader: true);