-
Notifications
You must be signed in to change notification settings - Fork 475
73 lines (68 loc) · 2.87 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Spell Check Markdown
on:
pull_request:
branches: [main]
push:
branches: [main]
paths: '**/*.md'
workflow_dispatch:
jobs:
spell-ckeck:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: streetsidesoftware/cspell-action@v3
name: Spell Check
id: spellcheck
continue-on-error: true
with:
github_token: ${{ github.token }} # Github token used to fetch the list of changed files in the commit
config: cspell.config.yaml
inline: warning # Notification level to use with inline reporting of spelling errors.
root: '.' # The point in the directory tree to start spell checking.
check_dot_files: false # Check files and directories starting with `.`.
strict: true # Determines if the action should be failed if any spelling issues are found.
incremental_files_only: false # Limit the files checked to the ones in the pull request or push.
verbose: false # Log progress and other information during the action execution.
files: |
**/*.md
!dist/**/*.{ts,js}
# Define glob patterns to filter the files to be checked. Use a new line between patterns to define multiple patterns.
# The default is to check ALL files that were changed in in the pull_request or push.
# Note: `ignorePaths` defined in cspell.json still apply.
# Example:
# files: |
# **/*.{ts,js}
# !dist/**/*.{ts,js}
# # Hidden directories need an explicit .* to be included
# .*/**/*.yml
#
# To not check hidden files, use:
# files: "**"
#
# Default: ALL files
# outputs:
# success:
# description: |
# "true" if no spelling issues were found, otherwise "false".
# number_of_files_checked:
# description: |
# The actual number of files that were checked.
# number_of_issues:
# description: |
# The number of issues found.
# number_of_files_with_issues:
# description: |
# The number of files that had issues.
# files_with_issues:
# description: |
# List of files with issues. Use `fromJSON()` to decode.
# The files are relative to the repository root.
# results:
# description: |
# The JSON encoded results.
- name: 'View results'
run: |
echo 'number_of_files_checked : ${{ steps.spellcheck.outputs.number_of_files_checked }}'
echo 'number_of_files_with_issues : ${{ steps.spellcheck.outputs.number_of_files_with_issues }}'
echo 'files_with_issues : ${{ steps.spellcheck.outputs.files_with_issues }}'