Skip to content

Commit

Permalink
test lints
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
amishas157 committed Oct 29, 2024
1 parent 2059018 commit 711a51f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_dbt_marts_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .sqlfluffignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dags/ddls/queries
changelog/dbt_marts.md
6 changes: 1 addition & 5 deletions scripts/update_dbt_marts_schema_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) | \(.operation) | \(.columns | join(", ")) |"'
echo ""

0 comments on commit 711a51f

Please sign in to comment.