Skip to content

Merge pull request #111 from T-Dunlap/fix_forecast_daily_returns #45

Merge pull request #111 from T-Dunlap/fix_forecast_daily_returns

Merge pull request #111 from T-Dunlap/fix_forecast_daily_returns #45

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