From 50b14e2e1b7e08aa5dff88970ed6622f81500585 Mon Sep 17 00:00:00 2001 From: shah Date: Mon, 17 Feb 2025 15:04:37 -0800 Subject: [PATCH] adds warehouse env and environment input --- .github/workflows/dbt_integration_test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml index 1646d61..bac1aeb 100644 --- a/.github/workflows/dbt_integration_test.yml +++ b/.github/workflows/dbt_integration_test.yml @@ -3,15 +3,23 @@ run-name: ${{ github.event.inputs.branch }} on: workflow_dispatch: + workflow_call: + inputs: + environment: + required: true + type: string concurrency: ${{ github.workflow }} +env: + WAREHOUSE: "${{ vars.WAREHOUSE }}" + jobs: called_workflow_template: uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt.yml@main with: command: > dbt test --selector 'integration_tests' - environment: ${{ github.ref == 'refs/heads/main' && 'workflow_prod' || 'workflow_dev' }} + environment: ${{ inputs.environment }} warehouse: ${{ vars.WAREHOUSE }} secrets: inherit \ No newline at end of file