diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml new file mode 100644 index 0000000000..4cab949ad2 --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,13 @@ +on: + pull_request: +name: link-check +jobs: + linkinator: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: JustinBeckwith/linkinator-action@v1.10.4 + with: + paths: "content/microservice-sdk/**-bundle/*.md" + concurrency: 1 + markdown: true diff --git a/.github/workflows/markdown.links.config.json b/.github/workflows/markdown.links.config.json new file mode 100644 index 0000000000..2ea21afed1 --- /dev/null +++ b/.github/workflows/markdown.links.config.json @@ -0,0 +1,19 @@ +{ + "ignorePatterns": [ + { + "pattern": "images/" + } + ,{ + "pattern": "/#" + } + ,{ + "pattern": "/^#" + } + ], + "replacementPatterns": [ + { + "pattern": "^-bundle", + "replacement": "" + }, + ] +}