From 2308b3c4b31fb76a1bc36422ef7a0ca60a67f2b8 Mon Sep 17 00:00:00 2001 From: Marc Ransome Date: Thu, 24 Feb 2022 21:01:41 +0000 Subject: [PATCH] Add markdown link checker workflow --- .github/workflows/links.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/links.yml diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..05e9375 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,30 @@ +name: markdown-links +on: + push: + branches: + - main + pull_request: + branches: + - main + release: + types: + - published + schedule: + - cron: "0 18 * * *" +jobs: + markdown-links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check links in modified Markdown files + if: github.event_name == 'pull_request' + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + base-branch: main + check-modified-files-only: yes + use-verbose-mode: yes + - name: Check links in all Markdown files + if: github.event_name != 'pull_request' + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-verbose-mode: yes