-
Notifications
You must be signed in to change notification settings - Fork 45
34 lines (30 loc) · 898 Bytes
/
spell-check.yml
File metadata and controls
34 lines (30 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Spell Check
on:
pull_request:
types: [opened, synchronize, reopened]
paths: ["**/*.md", "**/*.mdx", ".github/workflows/spell-check.yml"]
permissions:
contents: read
jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Get changed markdown files
id: changed-files
uses: tj-actions/changed-files@v47
with:
base_sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ github.event.pull_request.head.sha }}
include_all_old_new_renamed_files: true
files: |
**/*.md
**/*.mdx
- name: Run spell check
uses: crate-ci/typos@v1
with:
config: ./.github/config/typos.toml
files: ${{ steps.changed-files.outputs.all_changed_files }}