Skip to content

Commit

Permalink
FIX type assert in action template.
Browse files Browse the repository at this point in the history
FIX type assert in action template.
  • Loading branch information
karminski committed Jan 26, 2024
1 parent baa8b62 commit 45603d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actionruntime/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ func ProcessTemplateByContext(template interface{}, context map[string]interface
if errInPreprocessTemplate != nil {
return nil, errInPreprocessTemplate
}
return processedValue, nil
processedValueInJSON, _ := json.Marshal(processedValue)
return string(processedValueInJSON), nil
} else {
// jsut a normal string
processedTemplate, errInAssembleTemplate := parser_template.AssembleTemplateWithVariable(valueInString, context)
Expand Down

0 comments on commit 45603d7

Please sign in to comment.