call datashare grants as last step of deployment

This commit is contained in:
Desmond Hui 2023-10-17 09:44:25 -07:00
parent b2a7dadce1
commit 3b2cc1da7a

View File

@ -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 }}')}"