Skip to content

Commit

Permalink
secret
Browse files Browse the repository at this point in the history
  • Loading branch information
WHYTEWYLL committed Apr 12, 2024
1 parent b0efa85 commit b0d4ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dbt_run_scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env:
DATABASE: "${{ vars.DATABASE }}"
WAREHOUSE: "${{ vars.WAREHOUSE }}"
SCHEMA: "${{ vars.SCHEMA }}"
GB_ID: "${{ secrets.GB_ID }} }}"

concurrency:
group: ${{ github.workflow }}
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions macros/helpers/helpers.sql
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down

0 comments on commit b0d4ac0

Please sign in to comment.