Skip to content

Commit

Permalink
Add github action for links checker for markdown files (#207)
Browse files Browse the repository at this point in the history
* Add github action for links checker for markdown files

* updated action.yaml
  • Loading branch information
mfaizanse authored Oct 31, 2023
1 parent 9b41617 commit e9a09cf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint-markdown-links-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint Markdown Links PR
run-name: ${{github.event.pull_request.title}}
on: [ pull_request ]
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc.config.json'
folder-path: '.'
max-depth: -1
check-modified-files-only: 'yes'
base-branch: ${{ github.base_ref }}
12 changes: 12 additions & 0 deletions .mlc.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"replacementPatterns": [
{
"_comment": "a replacement rule for all the in-repository references",
"pattern": "^/",
"replacement": "{{BASEURL}}/"
}
],
"timeout": "20s",
"retryCount": 5,
"fallbackRetryDelay": "30s"
}

0 comments on commit e9a09cf

Please sign in to comment.