Skip to content

Commit

Permalink
check output files
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijli committed Jan 17, 2025
1 parent 4f80cd0 commit 728a56d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/check-links-and-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
push: { branches: [ main ] }
workflow_dispatch: { }
workflow_call: { }
pull_request: {}

jobs:
check-links:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
--verbose \
artifacts/**/*.html |
tee linkcheck_reports/linkcheck_output.txt
grep -q 'ERROR' linkcheck_reports/linkcheck_output.txt
if grep -q 'ERROR' linkcheck_reports/linkcheck_output.txt; then
echo "links_broken=true" >> $GITHUB_OUTPUT
else
Expand Down Expand Up @@ -82,7 +83,8 @@ jobs:
--plugins spell indefinite-article repeated-words syntax-mentions syntax-urls \
--reports spellcheck_reports/spellcheck_report.json |
tee spellcheck_reports/spellcheck_output.txt
cat spellcheck_reports/spellcheck_report.json
grep -q 'misspelt' spellcheck_reports/spellcheck_output.txt
if grep -q 'misspelt' spellcheck_reports/spellcheck_output.txt; then
echo "misspelt=true" >> $GITHUB_OUTPUT
else
Expand All @@ -94,5 +96,5 @@ jobs:
# uses: peter-evans/create-issue-from-file@v4
# with:
# title: Documentation contains misspelled words
# content-filepath: spellcheck_reports/spellcheck_output.txt
# content-filepath: spellcheck_reports/spellcheck_report.json
# labels: documentation, spelling-error
2 changes: 2 additions & 0 deletions .github/workflows/spellcheck_allow_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Biosample
biosample
Changesheets
changesheets
Community-centric
community-centric
Diátaxis
Globus
IMG
Expand Down

0 comments on commit 728a56d

Please sign in to comment.