Skip to content

Improve custom dbt transformation handling profiles.yml #4734

Closed
@ChristopheDuong

Description

@ChristopheDuong

Tell us about the problem you're trying to solve

As follow up to #4721, do proper yaml parsing/extract to be used in

PROFILE_NAME=$(grep -e "profile:" < "${CWD}/git_repo/dbt_project.yml" | sed -E "s/profile: *['\"]?([^'\"]*)['\"]?/\1/")

Describe the solution you’d like

we should write (a python?) script that uses a yaml parser to load the dbt_project.yml file and output the name of the profile being used, something like: load yaml file; print(config.get("profile")) it would be more robust

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions