-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (38 loc) · 1.11 KB
/
spellcheck.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Spell check Markdown files
# Controls when the action will run.
# Pull requests to main only.
on:
pull_request:
branches:
- main
concurrency:
# only one run per branch at a time
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
spellcheck:
runs-on: ubuntu-latest
name: Spell check files
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Remove files that do not need to be spellchecked
run: |
rm ./LICENSE.md
- name: Spell check action
uses: alexslemonade/spellcheck@v0
id: spell
with:
dictionary: components/dictionary.txt
- name: Upload spell check errors
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: spell_check_errors
path: spell_check_errors.tsv
- name: Fail if there are spelling errors
if: steps.spell.outputs.error_count > 0
run: |
echo "There were ${{ steps.spell.outputs.error_count }} errors"
column -t spell_check_errors.tsv
exit 1