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) Boolean omitHeader = false)
{ {
TemplateToken result; TemplateToken result;
if (!omitHeader) if (!omitHeader)
{ {
if (fileId != null) if (fileId != null)

View File

@@ -166,6 +166,7 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
if (token != null && token.Type != TokenType.Null) if (token != null && token.Type != TokenType.Null)
{ {
var context = CreateContext(null, null, setMissingContext: false); 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 try
{ {
token = TemplateEvaluator.Evaluate(context, PipelineTemplateConstants.StepsInTemplate, token, 0, null, omitHeader: true); token = TemplateEvaluator.Evaluate(context, PipelineTemplateConstants.StepsInTemplate, token, 0, null, omitHeader: true);