From f634e0dc27b86142452f5a4c33c572c3802c0ab8 Mon Sep 17 00:00:00 2001 From: stanz Date: Wed, 7 Jan 2026 20:26:28 +0700 Subject: [PATCH 1/2] create dbt_run_daily for daily runs --- .github/workflows/dbt_run_daily.yml | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/dbt_run_daily.yml diff --git a/.github/workflows/dbt_run_daily.yml b/.github/workflows/dbt_run_daily.yml new file mode 100644 index 0000000..95260bf --- /dev/null +++ b/.github/workflows/dbt_run_daily.yml @@ -0,0 +1,52 @@ +name: dbt_run_daily +run-name: dbt_run_daily + +on: + workflow_dispatch: + schedule: + # Runs at 9:00 UTC daily (see https://crontab.guru) + - cron: '0 9 * * *' + +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: "dbt_daily_runs" + +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: "${{ vars.PYTHON_VERSION }}" + cache: "pip" + + - name: install dependencies + run: | + pip install -r requirements.txt + dbt deps + - name: Run DBT Jobs + run: | + dbt run -m "aptos_models,tag:daily" + + notify-failure: + needs: [run_dbt_jobs] + if: failure() + uses: ./.github/workflows/slack_notify.yml + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 4edd7353546e253f7c88fecabfc8212059380058 Mon Sep 17 00:00:00 2001 From: stanz Date: Wed, 7 Jan 2026 21:35:21 +0700 Subject: [PATCH 2/2] modify to 8:30 UTC to account for daily_test --- .github/workflows/dbt_run_daily.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dbt_run_daily.yml b/.github/workflows/dbt_run_daily.yml index 95260bf..9b03cea 100644 --- a/.github/workflows/dbt_run_daily.yml +++ b/.github/workflows/dbt_run_daily.yml @@ -4,8 +4,8 @@ run-name: dbt_run_daily on: workflow_dispatch: schedule: - # Runs at 9:00 UTC daily (see https://crontab.guru) - - cron: '0 9 * * *' + # Runs at 8:30 UTC daily, before daily tests at 9:00 (see https://crontab.guru) + - cron: '30 8 * * *' env: DBT_PROFILES_DIR: ./