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 <xiuyangguan@gmail.com>
This commit is contained in:
xiuy001 2022-12-02 13:26:48 -05:00 committed by GitHub
parent cf04624460
commit 010bbc86e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 17 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
polygon:
target: dev
target: prod
outputs:
dev:
type: snowflake