Skip to content

Commit

Permalink
debug: fixes syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Aug 29, 2024
1 parent 4311582 commit e1e1fe7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,17 @@ jobs:
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 "Substring found: $substring"
result=$(echo "$DLT_SECRETS_TOML" | sed -n "s/.*$substring\(.\{0,10\}\).*/\1/p")
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)
result=$(echo "$DLT_SECRETS_TOML" | sed -n "s/.*$substring\(.\{0,21\}\).*/\1/p")
echo "First characters after the substring: $result"
else
echo "Substring $substring not found"
Expand All @@ -112,7 +113,7 @@ jobs:
substring="sources.rest_api_pipeline.github"
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)
result=$(echo "$DLT_SECRETS_TOML" | sed -n "s/.*$substring\(.\{0,21\}\).*/\1/p")
echo "First characters after the substring: $result"
else
echo "Substring $substring not found"
Expand All @@ -122,7 +123,7 @@ jobs:
substring="sources.rest_api_pipeline.github"
if echo "$SECRETS_FILE" | grep -q "$substring"; then
echo "substring found: $substring"
result=$(echo "$SECRETS_FILE" | awk -v substr="$substring" '{split($0, a, substr); print substr a[2]}' | cut -c 1-21)
result=$(echo "$SECRETS_FILE" | sed -n "s/.*$substring\(.\{0,21\}\).*/\1/p")
echo "First characters after the substring: $result"
else
echo "Substring $substring not found"
Expand Down

0 comments on commit e1e1fe7

Please sign in to comment.