build: exclude some files for typo checking.

This commit is contained in:
liqiang-fit2cloud 2025-08-06 14:44:39 +08:00
parent 7de8afc3a7
commit b3f7d5ed4f

View File

@ -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 <<EOF > 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