From b3f7d5ed4f3d989c914025b8ccdf200f14dbe201 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Wed, 6 Aug 2025 14:44:39 +0800 Subject: [PATCH] build: exclude some files for typo checking. --- .github/workflows/typos_check.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/typos_check.yml b/.github/workflows/typos_check.yml index 707a9f8f4..173250cee 100644 --- a/.github/workflows/typos_check.yml +++ b/.github/workflows/typos_check.yml @@ -1,8 +1,7 @@ name: Typos Check on: + workflow_dispatch: push: - branches: - - main pull_request: types: [opened, synchronize, reopened] @@ -12,9 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Actions Repository - uses: actions/checkout@v2 - + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + - name: Create config file + run: | + cat < typo-check-config.toml + [files] + extend-exclude = [ + "**/*_svg", + "**/migrations/**" + ] + EOF - name: Check spelling uses: crate-ci/typos@master with: - args: '--exclude "**/*_svg" --exclude "**/migrations/**"' + config: ./typo-check-config.toml