Merge pull request #120 from T-Dunlap/taylor_test_branch #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dbt Production Run on Push to Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run_dbt_on_merge_to_main: | |
name: dbt Production Run on Push to Main | |
runs-on: ubuntu-latest | |
env: | |
DBT_API_KEY: ${{ secrets.DBT_API_KEY }} | |
DBT_URL: https://cloud.getdbt.com # no trailing backslash. Change this for single tenant deployments to your actual base url | |
DBT_JOB_CAUSE: 'Github Actions - Push to Main' # provide a descriptive job cause here for easy debugging down the road | |
DBT_ACCOUNT_ID: 66543 | |
DBT_PROJECT_ID: 106453 | |
DBT_PR_JOB_ID: 123023 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11.1 #3.6 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11.1 #3.6 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Trigger dbt job | |
run: | | |
python -u ./python/run_and_monitor_dbt_cloud_job.py |