From 431158275319ca9aec3f4f884dbcfc2009d10642 Mon Sep 17 00:00:00 2001 From: Willi Date: Thu, 29 Aug 2024 15:08:22 +0530 Subject: [PATCH] debug: searches for dbt --- .github/workflows/test_common.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index c13d8b5f4f..5664ad8f85 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -92,13 +92,21 @@ jobs: - name: debug credentials run: | + substring="dbt" + if echo "$DLT_SECRETS_TOML" | grep -q "$substring"; then + echo "substring found: $substring" + result=$(echo "$DLT_SECRETS_TOML" | awk -v substr="$substring" '{split($0, a, substr); print substr a[2]}' | cut -c 1-21) + echo "First characters after the substring: $result" + else + echo "Substring $substring not found" + fi substring="ghp_KZC" if echo "$DLT_SECRETS_TOML" | grep -q "$substring"; then echo "substring found: $substring" result=$(echo "$DLT_SECRETS_TOML" | awk -v substr="$substring" '{split($0, a, substr); print substr a[2]}' | cut -c 1-21) echo "First characters after the substring: $result" else - echo "Substring not found" + echo "Substring $substring not found" fi substring="sources.rest_api_pipeline.github" @@ -107,7 +115,7 @@ jobs: result=$(echo "$DLT_SECRETS_TOML" | awk -v substr="$substring" '{split($0, a, substr); print substr a[2]}' | cut -c 1-21) echo "First characters after the substring: $result" else - echo "Substring not found" + echo "Substring $substring not found" fi SECRETS_FILE=$(cat tests/.dlt/secrets.toml) @@ -117,7 +125,7 @@ jobs: result=$(echo "$SECRETS_FILE" | awk -v substr="$substring" '{split($0, a, substr); print substr a[2]}' | cut -c 1-21) echo "First characters after the substring: $result" else - echo "Substring not found" + echo "Substring $substring not found" fi - run: |