forked from tier4/AutowareArchitectureProposal.iv
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1.13 KB
/
spell_check_all.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
name: Check spelling (all files)
on:
workflow_dispatch:
inputs:
ignore_patterns:
description: "ignore patterns (ex. *.svg|*.osm)"
required: false
jobs:
spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Prepare node
uses: actions/setup-node@v2
- name: Install cspell
run: |
npm install cspell
- name: Retrieve spell check dictionary
run: |
curl --silent --show-error \
--output .github/workflows/.cspell.json \
https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/cspell/.cspell.json
- name: Check spelling
run: |
# The cspell-action might not be able to exclude specific files.
# So use cspell package directly instead.
# How to exclude specific files:
# Ex. "**/!(*.osm|*.svg|CHANGELOG.rst)"
./node_modules/.bin/cspell \
--config .github/workflows/.cspell.json \
"**/!(CHANGELOG.rst|${{ github.event.inputs.ignore_patterns }})" \
2> /dev/null