From 010bbc86e1cb74e5cb418da302a0ab64761b4cbb Mon Sep 17 00:00:00 2001 From: xiuy001 <97179309+xiuy001@users.noreply.github.com> Date: Fri, 2 Dec 2022 13:26:48 -0500 Subject: [PATCH] added the profiles (#54) * added the profiles * added the profiles * added the profiles * added the profiles * added the profiles * updated the path * updated the path * updated * updated * updated the path * updated the target * updated Co-authored-by: yulike --- .github/workflows/dbt_run_adhoc.yml | 12 +++++------- ...uled_streamline.yml => dbt_run_scheduled.yml} | 16 +++++++--------- profiles.yml | 2 +- 3 files changed, 13 insertions(+), 17 deletions(-) rename .github/workflows/{dbt_scheduled_streamline.yml => dbt_run_scheduled.yml} (79%) diff --git a/.github/workflows/dbt_run_adhoc.yml b/.github/workflows/dbt_run_adhoc.yml index 3c0bc20..26b8641 100644 --- a/.github/workflows/dbt_run_adhoc.yml +++ b/.github/workflows/dbt_run_adhoc.yml @@ -1,12 +1,11 @@ -name: adhoc_dbt_run -run-name: call_workflow_template +name: dbt_run_adhoc +run-name: dbt_run_adhoc on: workflow_dispatch: branches: - main - - add_workflow_action - - added_profiles + - test_update_dbt_adhoc_command inputs: dbt_command: type: string @@ -30,9 +29,8 @@ env: jobs: called_workflow_template: - uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/run_chain_template.yml@main + uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_run_template.yml@main with: dbt_command: ${{ inputs.dbt_command }} - secrets: inherit # pass all secrets - + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/dbt_scheduled_streamline.yml b/.github/workflows/dbt_run_scheduled.yml similarity index 79% rename from .github/workflows/dbt_scheduled_streamline.yml rename to .github/workflows/dbt_run_scheduled.yml index 2fca8c8..e7fd5aa 100644 --- a/.github/workflows/dbt_scheduled_streamline.yml +++ b/.github/workflows/dbt_run_scheduled.yml @@ -1,17 +1,14 @@ -name: scheduled_streamline_dbt_run -run-name: scheduled_streamline_dbt_run +name: dbt_run_scheduled +run-name: dbt_run_scheduled on: push: branches: - main - - add_workflow_action - - added_profiles - - quick_fix_syntax schedule: # Runs "every 6 hours" (see https://crontab.guru) - - cron: '0 */1 * * *' - + - cron: '0 */6 * * *' + env: DBT_PROFILES_DIR: ./ @@ -29,9 +26,10 @@ env: jobs: called_workflow_template: - uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/run_chain_template.yml@main + uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_run_template.yml@main with: dbt_command: "dbt run -m 1+models/silver/streamline/streamline__blocks_realtime.sql 1+models/silver/streamline/streamline__transactions_realtime.sql" secrets: inherit # pass all secrets - \ No newline at end of file + + diff --git a/profiles.yml b/profiles.yml index 4a4014b..e357224 100644 --- a/profiles.yml +++ b/profiles.yml @@ -1,5 +1,5 @@ polygon: - target: dev + target: prod outputs: dev: type: snowflake