diff --git a/pkg/pr/creates.go b/pkg/pr/creates.go index 5e750268..62b7da98 100644 --- a/pkg/pr/creates.go +++ b/pkg/pr/creates.go @@ -21,6 +21,9 @@ func applyCreates(creates *CreateSpec, ctx map[string]interface{}) error { if tpl.External { source = filepath.Join(creates.ExternalDir, source) } + if templatedSource, err := templateReplacement([]byte(source), ctx); err == nil { + source = string(templatedSource) + } destPath := []byte(tpl.Destination) dest, err := templateReplacement(destPath, ctx)