Skip to content

is there an ability to add support for passing --vars to the dbt_command?  #65

@ari-stern

Description

@ari-stern

i believe because of the need to have a colon the yaml isnt playing nicely, unless im missing something

example:

    - name: dbt-deps
      uses: mwhitaker/dbt-action@v1.7.3
      with:
        dbt_command: "dbt deps --target pr --vars 'schema_id: 123' --profiles-dir ."

i consistently get an error like this no matter which syntax for vars i try:

Error: Invalid value for '--vars': String ''schema_id:' is not valid YAML

I also tried some other fixes like prefacing the dbt_command string with a | or a > or escaping the quotes, but i think the problem is the colon

if you have any other suggested fixes for this that would be awesome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions