-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 1.02 KB
/
dbt_on_merge_to_main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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