Skip to content

Add sample file with mistakes #30

Add sample file with mistakes

Add sample file with mistakes #30

Workflow file for this run

name: CSpell Check
on:
issue_comment:
types: [created]
jobs:
spellcheck:
if: github.event.issue.pull_request && github.event.comment.body == '/check-ru'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get pull request
id: get-pr
uses: xt0rted/pull-request-comment-branch@v2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
base_sha: ${{ steps.get-pr.outputs.base_sha }}
sha: ${{ steps.get-pr.outputs.head_sha }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install CSpell and dictionaries
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: Run CSpell Action
uses: streetsidesoftware/cspell-action@v6
id: cspell-action
with:
files: ${{ steps.changed-files.outputs.all_changed_files }}
check_dot_files: false
config: /cspell.json
incremental_files_only: false