adds warehouse env and environment input

This commit is contained in:
shah 2025-02-17 15:04:37 -08:00
parent 85b81c19aa
commit 50b14e2e1b

View File

@ -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