From 1737889790960a49f5cba819187633901a2e84d7 Mon Sep 17 00:00:00 2001 From: kaarthik108 Date: Sun, 24 Sep 2023 13:39:44 +1300 Subject: [PATCH] deploy udf --- .github/workflows/snowflake_deploy.yml | 9 ++++----- src/udf/wow/app.toml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/snowflake_deploy.yml b/.github/workflows/snowflake_deploy.yml index 80f4c59..a9b0756 100644 --- a/.github/workflows/snowflake_deploy.yml +++ b/.github/workflows/snowflake_deploy.yml @@ -59,13 +59,12 @@ jobs: run: | cd src IFS=$'\n' - # Initialize a variable to track if any deployment fails error_occurred=false - for dir in $(find src -mindepth 2 -type d); do + for dir in $(find . -mindepth 2 -type d); do # Changed this line # Extract the path relative to src - rel_path="${dir#src/}" - component_type=$(echo $rel_path | cut -d'/' -f1) - component_name=$(echo $rel_path | cut -d'/' -f2) + rel_path="${dir#.}" # Changed this line + component_type=$(echo $rel_path | cut -d'/' -f2) # Adjusted field number + component_name=$(echo $rel_path | cut -d'/' -f3) # Adjusted field number echo "Component Type: $component_type" echo "Component Name: $component_name" case $component_type in diff --git a/src/udf/wow/app.toml b/src/udf/wow/app.toml index 90f32f8..bd42d5d 100644 --- a/src/udf/wow/app.toml +++ b/src/udf/wow/app.toml @@ -5,4 +5,4 @@ role = "" [tool.poetry.dependencies] python = "3.10.0" -snowflake-snowpark-python = "1.6.1" \ No newline at end of file +snowflake-snowpark-python = "1.6.1"