From 3d3ca19a3dc3cc9187c74e72924b6b1fb3da0985 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:26:21 +0200 Subject: Run linkcheck on push and pull request (#239) Checks whether any links in markdown files in a push or pull request are broken. --- .github/.markdownlinkcheck.json | 7 +++++++ .github/workflows/linkcheck.yml | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/.markdownlinkcheck.json create mode 100644 .github/workflows/linkcheck.yml diff --git a/.github/.markdownlinkcheck.json b/.github/.markdownlinkcheck.json new file mode 100644 index 0000000..7e118b9 --- /dev/null +++ b/.github/.markdownlinkcheck.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "https://help.ea.com/en/help/pc/link-ea-and-steam/" + } + ] +} diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml new file mode 100644 index 0000000..e97f01e --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,14 @@ +name: Linkcheck +on: [push, pull_request] + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: md-linkcheck + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + config-file: '.github/.markdownlinkcheck.json' -- cgit v1.2.3