diff --git a/.github/workflows/dbt_run_deployment_template.yml b/.github/workflows/dbt_run_deployment_template.yml index 26e0be8..a1f00c2 100644 --- a/.github/workflows/dbt_run_deployment_template.yml +++ b/.github/workflows/dbt_run_deployment_template.yml @@ -66,3 +66,4 @@ jobs: - name: Run datashare model run: | cnt=$(dbt ls -m fsc_utils.datashare._datashare___create_gold | wc -l ); if [ $cnt -eq 1 ]; then dbt run -m fsc_utils.datashare._datashare___create_gold; fi; + dbt run-operation run_query --args "{sql: call admin.datashare.sp_grant_share_permissions('${{ env.DATABASE }}')}"