{"id":18830931,"url":"https://github.com/materializeinc/dbt-action","last_synced_at":"2026-01-24T13:30:15.516Z","repository":{"id":102994172,"uuid":"598230913","full_name":"MaterializeInc/dbt-action","owner":"MaterializeInc","description":"A GitHub Action for deploying to Materialize with dbt.","archived":false,"fork":false,"pushed_at":"2023-02-28T15:05:12.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-16T11:43:13.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaterializeInc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-06T17:17:38.000Z","updated_at":"2023-05-05T06:38:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdc3e4d2-3a81-4e06-b416-e211c49133e9","html_url":"https://github.com/MaterializeInc/dbt-action","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaterializeInc%2Fdbt-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaterializeInc%2Fdbt-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaterializeInc%2Fdbt-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaterializeInc%2Fdbt-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaterializeInc","download_url":"https://codeload.github.com/MaterializeInc/dbt-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239768942,"owners_count":19693760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T01:51:21.125Z","updated_at":"2026-01-24T13:30:15.486Z","avatar_url":"https://github.com/MaterializeInc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Materialize dbt action\n\nA GitHub action that runs dbt commands against a Materialize instance.\n\n## Required secrets\n\nThe following secrets are required:\n\n| Name | Description | Example |\n| ---- | ----------- | ------- |\n| `MZ_PASS` | The password for the Materialize user. | `MZ_PASS: ${{ secrets.MZ_PASS }}` |\n| `MZ_USER` | The username for the Materialize user. | `MZ_USER: ${{ secrets.MZ_USER }}` |\n| `MZ_HOST` | The host for the Materialize instance. | `MZ_HOST: ${{ secrets.MZ_HOST }}` |\n\n## Variables\n\nYou can override the default values for the following variables:\n\n\n| Name                 | Description                                  | Default       |\n| -------------------- | -------------------------------------------- | ------------- |\n| `DBT_MZ_VERSION`     | `dbt-materialize` adapter version to install | `latest`      |\n| `MZ_DATABASE`        | The database for the Materialize instance    | `materialize` |\n| `MZ_SCHEMA`          | The schema for the Materialize instance      | `public`      |\n| `MZ_CLUSTER`         | The cluster for the Materialize instance     | `default`     |\n| `DBT_PROJECT_FOLDER` | The dbt project folder                       | `.`           |\n\n## Usage\n\nCreate a new workflow file in your repository, for example `.github/workflows/materialize-dbt-action.yml` and add the following content:\n\n```yaml\nname: Materialize dbt action\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n      with:\n        fetch-depth: 0\n    - name: Materialize dbt action\n      uses: MaterializeInc/dbt-action@main\n      with:\n        dbt_command: \"dbt --version --profiles-dir /\"\n      env:\n        DBT_MZ_VERSION: 1.3.4\n        MZ_PASS: ${{ secrets.MZ_PASS }}\n        MZ_USER: ${{ secrets.MZ_USER }}\n        MZ_HOST: ${{ secrets.MZ_HOST }}\n        MZ_DATABASE: materialize\n        MZ_SCHEMA: public\n        MZ_CLUSTER: default\n        DBT_PROJECT_FOLDER: ${{ env.DBT_PROJECT_FOLDER }}\n```\n\nThe above will run the `dbt --version` command against your Materialize instance on every push to the `main` branch.\n\nTo run on a pull request, change the `on` section to:\n\n```yaml\non:\n  pull_request:\n    branches:\n      - main\n```\n\n## Inputs\n\n### `dbt_command`\n\n**Required** The dbt command to run. Default `\"dbt debug\"`. You can change this to run any dbt command.\n\n## Overriding the default `profiles.yml`\n\nYou can override the default `profiles.yml` by creating a new file in your repository called `profiles.yml` and add the following content:\n\n```yaml\ndefault:\n  outputs:\n    default:\n      type: materialize\n      threads: 1\n      user: \"{{ env_var('MZ_USER')}}\"\n      pass: \"{{ env_var('MZ_PASS')}}\"\n      host: \"{{ env_var('MZ_HOST')}}\"\n      port: 6875\n      database: materialize\n      schema: public\n      cluster: default\n      sslmode: require\n\n  target: default\n```\n\nThen change the `dbt_command` input to `dbt --version --profiles-dir .` if you have a `profiles.yml` file in your repository. The `${DBT_PROJECT_FOLDER}` will be added to the `--profiles-dir` argument.\n\nThis will override the default `profiles.yml` file and use the one from your repository.\n\n## `DBT_PROJECT_FOLDER`\n\nYou can specify a custom dbt project folder by setting the `DBT_PROJECT_FOLDER` environment variable. This is useful if you have multiple dbt projects in the same repository.\n\n\n## `dbt-materialize` version\n\nBy default the action will install the latest version of the `dbt-materialize` adapter.\nYou can specify a specific version by setting the `DBT_MZ_VERSION` environment variable. For example:\n\n```yaml\nenv:\n  DBT_MZ_VERSION: 1.3.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaterializeinc%2Fdbt-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaterializeinc%2Fdbt-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaterializeinc%2Fdbt-action/lists"}