mirror of
https://github.com/FlipsideCrypto/polygon-models.git
synced 2026-02-06 13:01:46 +00:00
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:
parent
cf04624460
commit
010bbc86e1
12
.github/workflows/dbt_run_adhoc.yml
vendored
12
.github/workflows/dbt_run_adhoc.yml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
polygon:
|
||||
target: dev
|
||||
target: prod
|
||||
outputs:
|
||||
dev:
|
||||
type: snowflake
|
||||
|
||||
Loading…
Reference in New Issue
Block a user