diff --git a/.github/workflows/dbt_run_scheduled_scores.yml b/.github/workflows/dbt_run_scheduled_scores.yml new file mode 100644 index 0000000..7aad489 --- /dev/null +++ b/.github/workflows/dbt_run_scheduled_scores.yml @@ -0,0 +1,46 @@ + +name: dbt_run_scheduled_scores +run-name: dbt_run_scheduled_scores + +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: Update scores + run: | + dbt run -m "fsc_evm,tag:scores" \ No newline at end of file diff --git a/data/github_actions__workflows.csv b/data/github_actions__workflows.csv index 14ad0fc..e10f8cb 100644 --- a/data/github_actions__workflows.csv +++ b/data/github_actions__workflows.csv @@ -6,4 +6,5 @@ dbt_test_intraday,"9 */4 * * *" dbt_test_daily,"34 7 * * *" dbt_run_scheduled_decoded_logs,"55 * * * *" dbt_run_scheduled_abis,"33 23 * * *" -dbt_run_scheduled_decoded_logs_history,"31 22 * * 6" \ No newline at end of file +dbt_run_scheduled_decoded_logs_history,"31 22 * * 6" +dbt_run_scheduled_scores,"3 5 * * *" \ No newline at end of file diff --git a/dbt_project.yml b/dbt_project.yml index 74a64f4..f148e05 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -86,6 +86,8 @@ models: +enabled: true decoded_logs: +enabled: true + scores_package: + +enabled: true vars: "dbt_date:time_zone": GMT @@ -159,6 +161,7 @@ vars: ### PRICES ### ## REQUIRED + MAIN_PRICES_TOKEN_WETH_ENABLED: true PRICES_PROVIDER_PLATFORMS: ["boba network", "boba"]