forked from yandex-cloud/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.06 KB
/
spellcheck-ru.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
name: CSpell Check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # ensures the full git history is available
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install CSpell
run: |
npm install -g cspell
npm install -g @cspell/dict-ru_ru
cspell link add @cspell/dict-ru_ru
npm install -g @cspell/dict-en-common-misspellings
cspell link add @cspell/dict-en-common-misspellings
- name: Fetch all modified files
id: files
run: |
echo "::set-output name=all_files::$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | tr '\n' ' ')"
- name: Run CSpell on all changed files
continue-on-error: true
run: |
cspell --config cspell.json --show-suggestions ${{ steps.files.outputs.all_files }}