From 6e005093a55504616669b651045e8429090fe7df Mon Sep 17 00:00:00 2001 From: Yonghui Lin Date: Fri, 30 Jun 2023 10:34:58 +0800 Subject: [PATCH] chore: check only the supported types (#2752) --- .github/workflows/check-code-style.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check-code-style.yml b/.github/workflows/check-code-style.yml index 7aa281112c..5ed1158ded 100644 --- a/.github/workflows/check-code-style.yml +++ b/.github/workflows/check-code-style.yml @@ -32,7 +32,10 @@ jobs: - name: Changed Files id: changed-files uses: tj-actions/changed-files@v37 + with: + files: "**/*.{js,cjs,mjs,jsx,ts,tsx,css,scss}" - name: Prettier Check + if: steps.changed-files.outputs.any_changed == 'true' run: | yarn prettier --check ${{ steps.changed-files.outputs.all_changed_files }}