This commit is contained in:
WHYTEWYLL 2024-04-12 14:52:42 +03:00
parent 2c7ab1533c
commit 15c8449fd9
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +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'}";
dbt run-operation dispatch_github_workflow --args "{'repo_name': 'streamline-snowflake', 'workflow_name': 'dbt_run_near_external_table_update', 'GB_ID': '${{ env.GB_ID }}'}";
- name: Store logs
uses: actions/upload-artifact@v3

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 %}