forked from hyperledger-bevel/bevel
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 998 Bytes
/
spellcheck.yaml
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
---
name: spell check
on:
push:
branches:
- "**"
pull_request:
paths:
- '**/*.md'
types: [opened, edited, updated]
env:
SPELL_CHECK_DISABLED: false
jobs:
check-spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
# Install the dependencies for grammer check and spell check.
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyspelling
sudo apt-get install hunspell hunspell-en-us aspell aspell-en
- uses: actions/checkout@v2
- name: Spellcheck
if: ${{ env.SPELL_CHECK_DISABLED == 'false' }}
uses: rojopolis/[email protected]
with:
config_path: .github/.spellcheck.yaml
source_files: '**/*.md' # name of the file to check spell
task_name: Markdown