Merge pull request #13 from FlipsideCrypto/AN-4034/add-grant-stmts-to-deploy-template

call datashare grants as last step of deployment
This commit is contained in:
desmond-hui 2023-10-18 07:04:00 -07:00 committed by GitHub
commit 7207ff4b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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