File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 11name : Spell Check
22on :
33 pull_request :
4+ types : [opened, synchronize, reopened]
5+ paths : ["**/*.md", "**/*.mdx"]
46
57permissions :
68 contents : read
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 }}
You can’t perform that action at this time.
0 commit comments