add-curated-GHA-yml (#29)

* curated gha run

* workflow

---------

Co-authored-by: Austin <austin@flipsidecrypto.com>
This commit is contained in:
Matt Romano 2024-03-20 08:51:11 -07:00 committed by GitHub
parent a42716dd3f
commit 8401aadf99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,44 @@
name: dbt_run_scheduled_curated
run-name: dbt_run_scheduled_curated
on:
workflow_dispatch:
branches:
- "main"
env:
DBT_PROFILES_DIR: ./
ACCOUNT: "${{ vars.ACCOUNT }}"
ROLE: "${{ vars.ROLE }}"
USER: "${{ vars.USER }}"
PASSWORD: "${{ secrets.PASSWORD }}"
REGION: "${{ vars.REGION }}"
DATABASE: "${{ vars.DATABASE }}"
WAREHOUSE: "${{ vars.WAREHOUSE }}"
SCHEMA: "${{ vars.SCHEMA }}"
concurrency:
group: ${{ github.workflow }}
jobs:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: install dependencies
run: |
pip install -r requirements.txt
dbt deps
- name: Run DBT Jobs
run: |
dbt run -m "blast_models,tag:curated"

View File

@ -2,4 +2,5 @@ workflow_name,workflow_schedule
dbt_run_scheduled_non_realtime,"17,47 * * * *"
dbt_run_streamline_chainhead,"10,40 * * * *"
dbt_run_streamline_decoder,"25,55 * * * *"
dbt_test_tasks,"10 * * * *"
dbt_test_tasks,"10 * * * *"
dbt_run_scheduled_curated,"30 * * * *"
1 workflow_name workflow_schedule
2 dbt_run_scheduled_non_realtime 17,47 * * * *
3 dbt_run_streamline_chainhead 10,40 * * * *
4 dbt_run_streamline_decoder 25,55 * * * *
5 dbt_test_tasks 10 * * * *
6 dbt_run_scheduled_curated 30 * * * *