Skip to content

Commit

Permalink
Load template from dbt_invoke_template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
david-whimsical committed Sep 15, 2023
1 parent a7cd109 commit e79f21b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dbt_invoke/internal/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def get_project_info(ctx, project_dir=None):
Path(project_path, macro_path)
for macro_path in project_yml.get('macro-paths', ['macros'])
]
# retrieves template information if provided
template_path = Path(project_path, 'dbt_invoke_template.yml')
if template_path.exists():
ctx.config['template_yml'] = parse_yaml(template_path)
# Set context config key-value pairs
ctx.config['project_path'] = project_path
ctx.config['project_name'] = project_name
Expand Down

0 comments on commit e79f21b

Please sign in to comment.