From ef8ff2d56f43a3d4f6c83e60f47b985d7c2cecfe Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Tue, 29 Oct 2024 16:33:19 -0500 Subject: [PATCH] test lints --- .github/workflows/update_dbt_marts_schema_changelog.yml | 2 +- .sqlfluffignore | 1 + scripts/update_dbt_marts_schema_changelog.sh | 6 +----- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_dbt_marts_schema_changelog.yml b/.github/workflows/update_dbt_marts_schema_changelog.yml index c14a01ce..900ad26d 100644 --- a/.github/workflows/update_dbt_marts_schema_changelog.yml +++ b/.github/workflows/update_dbt_marts_schema_changelog.yml @@ -53,7 +53,7 @@ jobs: id: commit_changes run: | git add changelog/dbt_marts.md - if git commit -m "Update changelog for DBT marts"; then + if git commit --no-verify -m "Update changelog for DBT marts"; then echo "Changes committed." echo "changes_committed=true" >> $GITHUB_OUTPUT else diff --git a/.sqlfluffignore b/.sqlfluffignore index 05ccce3b..7736f89e 100644 --- a/.sqlfluffignore +++ b/.sqlfluffignore @@ -1 +1,2 @@ dags/ddls/queries +changelog/dbt_marts.md diff --git a/scripts/update_dbt_marts_schema_changelog.sh b/scripts/update_dbt_marts_schema_changelog.sh index b141e856..78530ee7 100644 --- a/scripts/update_dbt_marts_schema_changelog.sh +++ b/scripts/update_dbt_marts_schema_changelog.sh @@ -20,9 +20,5 @@ echo "" echo "| Date | Table Name | Operation | Columns |" echo "|------------|---------------------------------|---------------|--------------------------|" -echo "$result" | jq -r '.[] | - "\(.date) | \(.table_name) | \(.operation) | \(.columns | join(", "))" ' | while IFS= read -r line; do - IFS='|' read -ra fields <<< "$line" - printf "| %-10s | %-60s | %-15s | %s |\n" "${fields[0]}" "${fields[1]}" "${fields[2]}" "${fields[3]}" -done +echo "$result" | jq -r '.[] | "| \(.date) | \(.table_name | ljust(50)) | \(.sub_type) | \(.columns | join(", ")) |"' echo ""