Skip to content

Commit

Permalink
Check all Markdowns for broken external links
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Aug 11, 2023
1 parent 199cd21 commit 1bcf673
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ignorePatterns": [
{
"pattern": "^/components/"
},
{
"pattern": "^/docs/"
}
]
}
13 changes: 7 additions & 6 deletions .github/workflows/broken-links-check.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: Broken links check
name: Broken Links Check

on:
schedule:
- cron: '0 0 * * 0' # weekly
- cron: '0 6 * * *' # daily at 6:00 UTC (7:00 CET, 8:00 CEST)

jobs:
broken_link_check:
runs-on: ubuntu-latest
name: Check for broken links
runs-on: ubuntu-20.04
name: Check react-ui.io for broken links
steps:
- name: Check for broken links
id: link-report
uses: celinekurpershoek/link-checker@v1
uses: celinekurpershoek/link-checker@v1.0.2
with:
url: 'https://react-ui.io'
honorRobotExclusions: false
ignorePatterns: "www.racom.eu"
ignorePatterns: "*.racom.eu*"

- name: Get the result
run: echo "${{steps.link-report.outputs.result}}"
15 changes: 15 additions & 0 deletions .github/workflows/external-links-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: External Links Check

on:
pull_request:

jobs:
broken_link_check:
name: Markdown link check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
config-file: '.github/markdown-link-check.json'
use-verbose-mode: 'yes'

0 comments on commit 1bcf673

Please sign in to comment.