build: exclude some files for typo checking.
This commit is contained in:
parent
7de8afc3a7
commit
b3f7d5ed4f
19
.github/workflows/typos_check.yml
vendored
19
.github/workflows/typos_check.yml
vendored
@ -1,8 +1,7 @@
|
|||||||
name: Typos Check
|
name: Typos Check
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
@ -12,9 +11,19 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Actions Repository
|
- 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
|
- name: Check spelling
|
||||||
uses: crate-ci/typos@master
|
uses: crate-ci/typos@master
|
||||||
with:
|
with:
|
||||||
args: '--exclude "**/*_svg" --exclude "**/migrations/**"'
|
config: ./typo-check-config.toml
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user