livequery-models/.github/workflows/dbt_run_adhoc.yml
Julius Remigio 8653f7cef2
STREAM-383/STREAM-668/deploy-to-hosted-account (#54)
* - removed utils.register_secret
- add hosted profile

* - refactor project variables to use config object

* - add \n

* - uncommented code

* - update return type

* - reverted name truncation

* - change GHA workflow environments to align with dbt profiles

* - add hosted option to enviornment dropdown

* - add integration test

* Update dbt_project.yml

Add INTERNAL_DEV role to stg profile

* - fix grants
- enforce dbt target
2023-10-17 11:26:58 -07:00

40 lines
880 B
YAML

name: dbt_run_adhoc
run-name: ${{ inputs.environment }} - ${{ inputs.dbt_command }}
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: DBT Run Environment
required: true
options:
- dev
- prod
- hosted
default: dev
warehouse:
type: choice
description: Snowflake warehouse
required: true
options:
- DBT
- DBT_CLOUD
- DBT_EMERGENCY
default: DBT
dbt_command:
type: string
description: 'DBT Run Command'
required: true
concurrency:
group: ${{ github.workflow }}
jobs:
ad_hoc:
uses: ./.github/workflows/dbt.yml
secrets: inherit
with:
warehouse: ${{ inputs.warehouse }}
environment: ${{ inputs.environment }}
command: ${{ inputs.dbt_command }}