-
Notifications
You must be signed in to change notification settings - Fork 2
/
spellcheck.yml
40 lines (35 loc) · 1.18 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
name: 'Spell Checker'
on:
pull_request:
branches: [ dev ]
workflow_dispatch:
inputs:
ref:
description: Branch, tag or SHA to checkout
default: dev
required: false
jobs:
spellcheck:
runs-on: ubuntu-latest
env:
CONFIG_URL: https://raw.githubusercontent.com/Nightblade/pob-dict/main
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Fetch config file and dictionaries
run: |
curl --silent --show-error --parallel --remote-name-all \
${{ env.CONFIG_URL }}/cspell.json \
${{ env.CONFIG_URL }}/pob-dict.txt \
${{ env.CONFIG_URL }}/poe-dict.txt \
${{ env.CONFIG_URL }}/ignore-dict.txt \
${{ env.CONFIG_URL }}/extra-en-dict.txt \
${{ env.CONFIG_URL }}/contribs-dict.txt
- name: Run cspell
uses: streetsidesoftware/cspell-action@v5
with:
files: '**' # needed as workaround for non-incremental runs (overrides in config still work ok)
config: "cspell.json"
incremental_files_only: ${{ github.event_name != 'workflow_dispatch' }}