This commit is contained in:
WHYTEWYLL 2024-04-12 14:31:45 +03:00
parent b0d4ac05cf
commit a39386cb78
2 changed files with 3 additions and 3 deletions

View File

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

View File

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