Skip to content

Commit 15185cc

Browse files
committed
fix(action): spell check
1 parent bc550d4 commit 15185cc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/spell-check.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Spell Check
22
on:
33
pull_request:
4+
types: [opened, synchronize, reopened]
5+
paths: ["**/*.md", "**/*.mdx"]
46

57
permissions:
68
contents: read
@@ -9,22 +11,24 @@ jobs:
911
spell-check:
1012
runs-on: ubuntu-latest
1113
steps:
12-
- name: Checkout code
14+
- name: Checkout repository
1315
uses: actions/checkout@v4
1416
with:
1517
fetch-depth: 0
1618

17-
- name: Get changed files
19+
- name: Get changed markdown files
1820
id: changed-files
1921
uses: tj-actions/changed-files@v46
2022
with:
23+
base_sha: ${{ github.event.pull_request.base.sha }}
24+
sha: ${{ github.event.pull_request.head.sha }}
2125
include_all_old_new_renamed_files: true
2226
files: |
2327
**/*.md
2428
**/*.mdx
2529
26-
- name: Run Spell Check on all changed files
27-
uses: crate-ci/typos@master
30+
- name: Run spell check
31+
uses: crate-ci/typos@v1
2832
with:
2933
config: ./.github/config/typos.toml
30-
files: ${{ steps.changed-files.outputs.all_changed_files }}
34+
files: ${{ steps.changed-files.outputs.all_changed_files }}

0 commit comments

Comments
 (0)