forked from microsoft/agent-governance-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 916 Bytes
/
spell-check.yml
File metadata and controls
36 lines (30 loc) · 916 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
35
36
name: Spell Check
on:
pull_request:
branches: [main]
paths:
- "**/*.md"
- ".cspell.json"
- ".cspell-repo-terms.txt"
- ".github/workflows/spell-check.yml"
permissions:
contents: read
pull-requests: read
jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Get changed markdown files
id: changed-markdown
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
with:
files: |
**/*.md
- name: Install cspell
run: npm install --global cspell@8
- name: Check spelling
if: steps.changed-markdown.outputs.any_changed == 'true'
run: cspell --config .cspell.json --no-progress ${{ steps.changed-markdown.outputs.all_changed_files }}