Skip to content

Commit

Permalink
testing npx usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijli committed Jan 17, 2025
1 parent 239e7d8 commit ac9f592
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/check-links-and-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
# base-branch: 'main'
run: |
mkdir -p linkcheck_reports
npx -y markdown-link-check \
npx markdown-link-check \
--verbose \
artifacts/**/*.html \
> linkcheck_reports/linkcheck_output.txt
artifacts/**/*.html
# > linkcheck_reports/linkcheck_output.txt

# - name: Run linkspector
# uses: umbrelladocs/action-linkspector@v1
Expand All @@ -55,13 +55,13 @@ jobs:
# run: |
# mkdir -p linkcheck_reports
# echo "${{ steps.linkcheck.outputs }}" > linkcheck_reports/linkcheck_output.txt
- name: Create GitHub Issue for Broken Links
if: ${{ steps.linkcheck.outcome != 'success' }}
uses: peter-evans/create-issue-from-file@v4
with:
title: Broken links detected in documentation
content-filepath: linkcheck_reports/linkcheck_output.txt
labels: documentation, broken-link
# - name: Create GitHub Issue for Broken Links
# if: ${{ steps.linkcheck.outcome != 'success' }}
# uses: peter-evans/create-issue-from-file@v4
# with:
# title: Broken links detected in documentation
# content-filepath: linkcheck_reports/linkcheck_output.txt
# labels: documentation, broken-link

check-spelling:
name: Check Spelling in Documentation
Expand All @@ -87,10 +87,10 @@ jobs:
--reports spellcheck_reports/spellcheck_report.json |
grep "misspelt" \
> spellcheck_reports/spellcheck_output.txt
- name: Create GitHub Issue for Misspellings
if: ${{ steps.spellchecker-cli.outcome != 'success' }}
uses: peter-evans/create-issue-from-file@v4
with:
title: Documentation contains misspelled words
content-filepath: spellcheck_reports/spellcheck_output.txt
labels: documentation, spelling-error
# - name: Create GitHub Issue for Misspellings
# if: ${{ steps.spellchecker-cli.outcome != 'success' }}
# uses: peter-evans/create-issue-from-file@v4
# with:
# title: Documentation contains misspelled words
# content-filepath: spellcheck_reports/spellcheck_output.txt
# labels: documentation, spelling-error

0 comments on commit ac9f592

Please sign in to comment.