mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 11:26:52 +00:00
var
This commit is contained in:
parent
b0d4ac05cf
commit
a39386cb78
4
.github/workflows/dbt_run_scheduled.yml
vendored
4
.github/workflows/dbt_run_scheduled.yml
vendored
@ -19,6 +19,7 @@ env:
|
||||
DATABASE: "${{ vars.DATABASE }}"
|
||||
WAREHOUSE: "${{ vars.WAREHOUSE }}"
|
||||
SCHEMA: "${{ vars.SCHEMA }}"
|
||||
GB_ID: "${{ vars.GB_ID }}"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}
|
||||
@ -42,8 +43,7 @@ jobs:
|
||||
|
||||
- name: Run DBT Jobs
|
||||
run: |
|
||||
dbt run-operation dispatch_github_workflow --args "{'repo_name': 'streamline-snowflake', 'workflow_name': 'dbt_run_near_external_table_update', 'gb_id': '${{ secrets.GB_ID }}";
|
||||
dbt seed; dbt run -s models/bronze tag:helper tag:load+ tag:labels+ --exclude streamline__s3_sync tag:livequery tag:atlas tag:exclude_from_schedule
|
||||
dbt run-operation dispatch_github_workflow --args "{'repo_name': 'streamline-snowflake', 'workflow_name': 'dbt_run_near_external_table_update'}";
|
||||
|
||||
- name: Store logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{% macro dispatch_github_workflow(repo_name, workflow_name, gb_id) %}
|
||||
{% set context_query %}
|
||||
SET LIVEQUERY_CONTEXT = '{"userId":"{{ gb_id }}"}';
|
||||
SET LIVEQUERY_CONTEXT = '{"userId":"{{ var('GB_ID') }}"}';
|
||||
{% endset %}
|
||||
{% do run_query(context_query) %}
|
||||
{% set query %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user