Update dbt integration test workflow to enhance environment handling

- Modified the warehouse selection logic to include 'workflow_prod' as a valid condition for using 'DBT_CLOUD'.
- Updated the environment assignment to correctly map 'workflow_prod' to 'prod' and 'workflow_dev' to 'dev', improving clarity and functionality in the workflow.
This commit is contained in:
Jensen Yap 2025-09-02 22:33:46 +09:00
parent db62a0a16e
commit 86e9ab3ceb

View File

@ -41,6 +41,6 @@ jobs:
uses: ./.github/workflows/dbt.yml
secrets: inherit
with:
warehouse: ${{ github.event.inputs.environment == 'prod' && 'DBT_CLOUD' || 'XSMALL' }}
environment: ${{ github.event.inputs.environment }}
warehouse: ${{ (github.event.inputs.environment == 'prod' || github.event.inputs.environment == 'workflow_prod') && 'DBT_CLOUD' || 'XSMALL' }}
environment: ${{ github.event.inputs.environment == 'workflow_prod' && 'prod' || (github.event.inputs.environment == 'workflow_dev' && 'dev' || github.event.inputs.environment) }}
command: dbt test -s test___utils_udf_introspect