Skip to content

Commit

Permalink
ci: check links in all MD files (#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Aug 22, 2023
1 parent 641a4c4 commit a8afb51
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci-check-md-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check Markdown links
# https://github.com/gaurav-nelson/github-action-markdown-link-check

on:
push:
branches: [master, "release/*"]
pull_request:
branches: [master, "release/*"]
types: [opened, reopened, ready_for_review, synchronize]
paths:
- ".github/workflows/ci-check-md-links.yml"
- ".github/workflows/markdown.links.config.json"
- "**/*.md"

jobs:
check-md-links:
if: github.event.pull_request.draft == false
uses: Lightning-AI/utilities/.github/workflows/check-md-links.yml@v0.9.0
with:
config-file: ".github/workflows/markdown.links.config.json"
15 changes: 15 additions & 0 deletions .github/workflows/markdown.links.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ignorePatterns": [
{
"pattern": "^https://github.com/Lightning-AI/torchmetrics/pull/.*"
},
],
"httpHeaders": [
{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
]
}

0 comments on commit a8afb51

Please sign in to comment.