-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: check links in all MD files (#2012)
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} |