-
Notifications
You must be signed in to change notification settings - Fork 9
31 lines (29 loc) · 891 Bytes
/
spellcheck.yaml
File metadata and controls
31 lines (29 loc) · 891 Bytes
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
name: Spell Checker
on:
pull_request:
branches:
- main
jobs:
spellcheck:
name: Spell Check on changed doc files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Get changed files in the docs folder
id: changed-files-specific
uses: tj-actions/changed-files@v44
with:
files: docs/**
separator: '\n'
- name: Spell check if any file(s) in the docs folder change
if: steps.changed-files-specific.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files-specific.outputs.all_changed_files }}
run: |
printf "$ALL_CHANGED_FILES" | yarn spellcheck-on-pr