From 341bfd4f0a037f03681fda72ce981f21d8dfe78d Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Wed, 1 Mar 2023 12:28:10 +0800 Subject: [PATCH] chore: update sql prettier check --- .github/workflows/prettier.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 17e6cd92c86..b76110e2298 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -61,4 +61,7 @@ jobs: run: npm ci - name: Run prettier run: |- - npx prettier -c '*.sql' + # Check mdx files which contain sql code blocks + grep -lr '```sql' apps/docs/pages/**/*.mdx | \ + grep -Ev '(/guides/auth/|/guides/integrations/)' | \ + xargs npx prettier -c