This commit is contained in:
WHYTEWYLL 2024-04-12 12:19:49 +03:00
parent b0efa85d61
commit b0d4ac05cf
2 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,6 @@ env:
DATABASE: "${{ vars.DATABASE }}"
WAREHOUSE: "${{ vars.WAREHOUSE }}"
SCHEMA: "${{ vars.SCHEMA }}"
GB_ID: "${{ secrets.GB_ID }} }}"
concurrency:
group: ${{ github.workflow }}
@ -43,7 +42,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'}";
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
- name: Store logs

View File

@ -1,6 +1,6 @@
{% macro dispatch_github_workflow(repo_name, workflow_name) %}
{% macro dispatch_github_workflow(repo_name, workflow_name, gb_id) %}
{% set context_query %}
SET LIVEQUERY_CONTEXT = '{"userId":"{{ var("GB_ID") }}"}';
SET LIVEQUERY_CONTEXT = '{"userId":"{{ gb_id }}"}';
{% endset %}
{% do run_query(context_query) %}
{% set query %}