Skip to content

Commit

Permalink
Add spell check to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
carusooo committed Aug 23, 2024
1 parent 8b1c7d8 commit 7bfa58c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Pull Request Checks

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
spellcheck:
name: Spellcheck
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
name: Checkout
- uses: jitterbit/get-changed-files@v1
id: changed_files
name: Get changed files
- id: md_changed_files
name: Spellcheck Markdown files
run: |-
files=''
for f in ${{ steps.changed_files.outputs.all }}
do
ext="${f##*.}"
if [ $ext = "md" || $ext = "mdx" ];
then
files="${f} ${files}"
fi
done
echo "files=${files}" >> $GITHUB_ENV
- uses: rojopolis/[email protected]
name: Spellcheck
if: ${{ env.files }}
with:
source_files: ${{ env.files }}
task_name: Markdown

0 comments on commit 7bfa58c

Please sign in to comment.