Skip to content

Commit 9f61993

Browse files
committed
add markdown link checker for the generated package
1 parent de3dccd commit 9f61993

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: markdown-link-check
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
markdown-link-check:
8+
name: Check markdown links
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@main
12+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
13+
with:
14+
config-file: '.mlc-config.json'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"_comment": "Markdown Link Checker configuration, see https://github.com/gaurav-nelson/github-action-markdown-link-check and https://github.com/tcort/markdown-link-check",
3+
"ignorePatterns": [
4+
{
5+
"pattern": "^http://localhost"
6+
},
7+
{
8+
"pattern": "^https://doi.org/<replace-with-created-DOI>"
9+
},
10+
{
11+
"pattern": "^https://bestpractices.coreinfrastructure.org/projects/<replace-with-created-project-identifier>"
12+
}
13+
],
14+
"replacementPatterns": [
15+
]
16+
}

{{cookiecutter.project_name}}/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
| Lint | [![lint]({{cookiecutter.repository}}/actions/workflows/lint.yml/badge.svg)]({{cookiecutter.repository}}/actions/workflows/lint.yml) |
2020
| Publish | [![publish]({{cookiecutter.repository}}/actions/workflows/publish.yml/badge.svg)]({{cookiecutter.repository}}/actions/workflows/publish.yml) |
2121
| SonarCloud | [![sonarcloud]({{cookiecutter.repository}}/actions/workflows/sonarcloud.yml/badge.svg)]({{cookiecutter.repository}}/actions/workflows/sonarcloud.yml) |
22+
| MarkDown link checker | [![markdown-link-check]({{cookiecutter.repository}}/actions/workflows/markdown-link-check.yml/badge.svg)]({{cookiecutter.repository}}/actions/workflows/markdown-link-check.yml) |
2223

2324
## How to use {{ cookiecutter.package_name }}
2425

0 commit comments

Comments
 (0)