mirror of
https://github.com/tcort/markdown-link-check.git
synced 2024-10-05 19:37:32 +03:00
docs: add example for GitLab pipeline
This commit is contained in:
parent
2b0095f270
commit
dd27b9acc1
15
README.md
15
README.md
@ -50,6 +50,21 @@ To run as a [pre-commit hook](https://pre-commit.com):
|
||||
args: [-q]
|
||||
```
|
||||
|
||||
## Run in a GitLab pipeline
|
||||
|
||||
```yaml
|
||||
linkchecker:
|
||||
stage: test
|
||||
image:
|
||||
name: ghcr.io/tcort/markdown-link-check:3.11.2
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check
|
||||
rules:
|
||||
- changes:
|
||||
- "**/*.md"
|
||||
```
|
||||
|
||||
## Run in other tools
|
||||
|
||||
- [Mega-Linter](https://megalinter.io/latest/): Linters aggregator [including markdown-link-check](https://megalinter.io/latest/descriptors/markdown_markdown_link_check/)
|
||||
|
Loading…
Reference in New Issue
Block a user