Skip to content

Commit 24c6463

Browse files
added in database permissions for ownership
1 parent 5cff9d1 commit 24c6463

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tasks/database-permissions/action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ inputs:
55
description: The directory where the scripts are located
66
required: true
77
target-database:
8-
description: The target database name to clone to
8+
description: The target database name to apply permissions to
9+
required: true
10+
target-ownership:
11+
description: The target ownership of the database
912
required: true
1013
snowflake-account:
1114
description: The Snowflake account name
@@ -29,6 +32,7 @@ runs:
2932
- name: Find and replace the placeholders
3033
run: |
3134
sed -i 's/<<TARGET_DATABASE_NAME>>/${{ inputs.target-database }}/g' database-permissions.sql
35+
sed -i 's/<<TARGET_OWNERSHIP_ROLE>>/${{ inputs.target-ownership }}/g' database-permissions.sql
3236
shell: pwsh
3337
working-directory: ${{ inputs.working-directory }}
3438
- name: Download SnowSQL

0 commit comments

Comments
 (0)