Skip to content

Commit 32162b6

Browse files
committed
Update CI/CD workflow: add setup step to execute SQL script for Snowflake environment configuration
1 parent 01723ae commit 32162b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/snowpark-ci-cd.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,17 @@ jobs:
107107
run: |
108108
snow --version
109109
110+
- name: Setup Snowflake
111+
run: |
112+
echo "Running setup SQL script..."
113+
snow sql -f scripts/setup_${ENVIRONMENT}.sql --accountname $SNOWFLAKE_ACCOUNT \
114+
--user $SNOWFLAKE_USER --password $SNOWFLAKE_PASSWORD \
115+
--warehouse $SNOWFLAKE_WAREHOUSE --database $DATABASE_NAME \
116+
--schema $SCHEMA_NAME
117+
110118
- name: Deploy UDFs and Stored Procedures
111119
run: |
112120
echo "Deploying UDFs and Stored Procedures..."
113-
snow sql -f scripts/setup_${ENVIRONMENT}.sql
114121
# Deploy using temporary connection
115122
for dir in udfs_and_spoc/*; do
116123
if [ -d "$dir" ]; then

0 commit comments

Comments
 (0)