Skip to content

Commit

Permalink
[ECO-1279] Add link checker that includes markdown internal links (#34)
Browse files Browse the repository at this point in the history
Co-authored-by: alnoki <[email protected]>
  • Loading branch information
xbtmatt and alnoki authored Mar 11, 2024
1 parent 6b84797 commit 03d29ee
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# cspell:words lycheeverse, micalevisk
---
jobs:
linkChecker:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3'
- env:
GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'
id: 'lychee'
name: 'Link Checker'
uses: 'lycheeverse/lychee-action@v1'
- id: 'last-issue'
name: 'Find the last open report issue'
uses: 'micalevisk/last-issue-action@v2'
with:
labels: |
report
automated issue
link checker
state: 'open'
- if: >-
steps.last-issue.outputs.has-found == 'true' ||
env.lychee_exit_code != '0'
name: 'Update last updated report issue'
uses: 'peter-evans/create-issue-from-file@v5'
with:
assignees: 'xbtmatt'
content-filepath: './lychee/out.md'
# Update an existing issue if one was found (issue-number),
# otherwise an empty value creates a new issue.
issue-number: '${{ steps.last-issue.outputs.issue-number }}'
labels: |
report
automated issue
link checker
title: 'Link Checker Report'
name: 'Link Checker'
'on':
schedule:
- cron: '0 0 * * *'
workflow_dispatch: null
permissions:
issues: 'write'
pull-requests: 'write'
...
1 change: 1 addition & 0 deletions cfg/cspell-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ octas
struct
subdir
unrecognize
xbtmatt

0 comments on commit 03d29ee

Please sign in to comment.