mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
build: exclude some files for typo checking.
This commit is contained in:
parent
7de8afc3a7
commit
b3f7d5ed4f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue