Skip to content

Commit b3f7d5e

Browse files
build: exclude some files for typo checking.
1 parent 7de8afc commit b3f7d5e

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/typos_check.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Typos Check
22
on:
3+
workflow_dispatch:
34
push:
4-
branches:
5-
- main
65
pull_request:
76
types: [opened, synchronize, reopened]
87

@@ -12,9 +11,19 @@ jobs:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- name: Checkout Actions Repository
15-
uses: actions/checkout@v2
16-
14+
uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.ref_name }}
17+
- name: Create config file
18+
run: |
19+
cat <<EOF > typo-check-config.toml
20+
[files]
21+
extend-exclude = [
22+
"**/*_svg",
23+
"**/migrations/**"
24+
]
25+
EOF
1726
- name: Check spelling
1827
uses: crate-ci/typos@master
1928
with:
20-
args: '--exclude "**/*_svg" --exclude "**/migrations/**"'
29+
config: ./typo-check-config.toml

0 commit comments

Comments
 (0)