markdown-link-check
markdown-link-check copied to clipboard
Document running in GitLab CI/CD Pipeline
The README.md file only mentions GitHub Actions.
here an example:
linkchecker:
stage: test
image:
name: ghcr.io/tcort/markdown-link-check:3.11.2
entrypoint: ["/bin/sh", "-c"]
needs: []
variables:
MARKDOWN_LINK_CHECK_CONFIG_FILE: markdown-link-check-config.json
script:
- find . -name \*.md -print0 | xargs -0 -n1 markdown-link-check -c ${MARKDOWN_LINK_CHECK_CONFIG_FILE}
rules:
- changes:
- "**/*.md"
- ${MARKDOWN_LINK_CHECK_CONFIG_FILE}
IMO this is merged and can be closed.
=> https://github.com/tcort/markdown-link-check?tab=readme-ov-file#run-in-a-gitlab-pipeline