mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update spellcheck-docs.yml
This commit is contained in:
parent
7d58497b24
commit
515f577332
10
.github/workflows/spellcheck-docs.yml
vendored
10
.github/workflows/spellcheck-docs.yml
vendored
@ -32,14 +32,18 @@ jobs:
|
||||
- name: Run cspell
|
||||
run: |
|
||||
if [ -n "${{ github.event.inputs.directory }}" ]; then
|
||||
cspell "${{ github.event.inputs.directory }}/**/*.md" "${{ github.event.inputs.directory }}/**/*.mdx"
|
||||
cspell "${{ github.event.inputs.directory }}/**/*.md" "${{ github.event.inputs.directory }}/**/*.mdx" > report.txt || true
|
||||
else
|
||||
cspell "website/docs/**/*.md" "website/docs/**/*.mdx"
|
||||
cspell "website/docs/**/*.md" "website/docs/**/*.mdx" > report.txt || true
|
||||
fi
|
||||
|
||||
- name: Upload Spell Check Report
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: spell-check-report
|
||||
path: report.txt
|
||||
if-no-files-found: warn
|
||||
|
||||
- name: Fail Workflow on Errors
|
||||
if: failure()
|
||||
run: exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user