Skip to content

Commit 07d6a54

Browse files
authored
chore: CHARTS-6802 Add github action to check markdown links (#69)
1 parent fa47084 commit 07d6a54

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

.github/workflows/cron-weekly.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Weekly job
2+
3+
on:
4+
schedule:
5+
# Run every Sunday at 9AM
6+
- cron: "0 9 * * 0"
7+
8+
jobs:
9+
markdown-link-check:
10+
uses: ./.github/workflows/markdown-link-check.yml

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Main workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
markdown-link-check:
13+
uses: ./.github/workflows/markdown-link-check.yml
14+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^https?://localhost.*"
5+
}
6+
]
7+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Checks for any broken links in markdown files
2+
name: Check Markdown links
3+
4+
on: workflow_call
5+
6+
jobs:
7+
check-links:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
12+
with:
13+
use-verbose-mode: 'yes'
14+
config-file: '.github/workflows/markdown-link-check.config.json'
15+

0 commit comments

Comments
 (0)