2022-01-30 15:39:30 +01:00
|
|
|
name: cspell
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-03-22 08:03:51 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2022-01-30 15:39:30 +01:00
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: 2
|
|
|
|
|
2022-12-16 08:20:12 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-01-30 15:39:30 +01:00
|
|
|
jobs:
|
|
|
|
cspell:
|
2022-12-16 08:20:12 +01:00
|
|
|
permissions:
|
|
|
|
# allow streetsidesoftware/cspell-action to fetch files for commits and PRs
|
|
|
|
contents: read
|
|
|
|
pull-requests: read
|
2022-01-30 15:39:30 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2023-09-13 11:47:26 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-11-09 08:21:55 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-01-30 15:39:30 +01:00
|
|
|
|
|
|
|
- name: Run cspell
|
2023-08-23 08:27:01 +02:00
|
|
|
uses: streetsidesoftware/cspell-action@v3
|
2022-01-30 15:39:30 +01:00
|
|
|
with:
|
|
|
|
config: ".cspell.json"
|
|
|
|
files: "**/*.md"
|
|
|
|
inline: error
|
|
|
|
incremental_files_only: false
|