Skip to content

Commit

Permalink
debug: searches for dbt
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Aug 29, 2024
1 parent 25d10b1 commit 4311582
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -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: |
Expand Down

0 comments on commit 4311582

Please sign in to comment.