From 31284af9e395e9da86b433029bc16f855acdaeab Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 30 Jul 2025 08:26:58 +0000 Subject: [PATCH] Fix schema name generation for branch names with forward slashes - Update sed regex from 's/-/_/g' to 's/[-\/]/_/g' to handle both hyphens and forward slashes - Fixes CI failures when branch names contain '/' characters like 'devin/ELE-4833-1753733759' - Ensures valid database schema names are generated for all branch naming patterns Co-Authored-By: Yosef Arbiv --- .github/workflows/test-warehouse.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-warehouse.yml b/.github/workflows/test-warehouse.yml index e7c8eed98..c37a46bd7 100644 --- a/.github/workflows/test-warehouse.yml +++ b/.github/workflows/test-warehouse.yml @@ -123,7 +123,7 @@ jobs: run: | mkdir -p ~/.dbt DBT_VERSION=$(pip show dbt-core | grep -i version | awk '{print $2}' | sed 's/\.//g') - UNDERSCORED_REF_NAME=$(echo "${{ inputs.warehouse-type }}_dbt_${DBT_VERSION}_${BRANCH_NAME}" | awk '{print tolower($0)}' | head -c 40 | sed "s/-/_/g") + UNDERSCORED_REF_NAME=$(echo "${{ inputs.warehouse-type }}_dbt_${DBT_VERSION}_${BRANCH_NAME}" | awk '{print tolower($0)}' | head -c 40 | sed "s/[-\/]/_/g") echo "$PROFILES_YML" | base64 -d | sed "s//dbt_pkg_$UNDERSCORED_REF_NAME/g" > ~/.dbt/profiles.yml - name: Check DWH connection