diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml index bac1aeb..8e8d3ac 100644 --- a/.github/workflows/dbt_integration_test.yml +++ b/.github/workflows/dbt_integration_test.yml @@ -3,7 +3,6 @@ run-name: ${{ github.event.inputs.branch }} on: workflow_dispatch: - workflow_call: inputs: environment: required: true @@ -11,15 +10,25 @@ on: concurrency: ${{ github.workflow }} -env: - WAREHOUSE: "${{ vars.WAREHOUSE }}" - jobs: + prepare_vars: + runs-on: ubuntu-latest + environment: + name: ${{ inputs.environment }} + outputs: + warehouse: ${{ steps.set_outputs.outputs.warehouse }} + steps: + - name: Set warehouse output + id: set_outputs + run: | + echo "warehouse=${{ vars.WAREHOUSE }}" >> $GITHUB_OUTPUT + called_workflow_template: + needs: prepare_vars uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt.yml@main with: command: > dbt test --selector 'integration_tests' - environment: ${{ inputs.environment }} - warehouse: ${{ vars.WAREHOUSE }} + environment: ${{ inputs.environment }} + warehouse: ${{ needs.prepare_vars.outputs.warehouse }} secrets: inherit \ No newline at end of file