From ab3e0d4e40eb808b7971be8fb2fb35eb6f4e9e29 Mon Sep 17 00:00:00 2001 From: Olivier Date: Fri, 23 Dec 2022 22:58:04 +0700 Subject: [PATCH] CI: Add a github action that could help to check if links are dead --- .404-links.yml | 2 ++ .github/workflows/404-links.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .404-links.yml create mode 100644 .github/workflows/404-links.yml diff --git a/.404-links.yml b/.404-links.yml new file mode 100644 index 0000000..f71893e --- /dev/null +++ b/.404-links.yml @@ -0,0 +1,2 @@ +delay: + 'https://github.com': 500 #Avoiding Github rate limit by delaying the request -> 500ms diff --git a/.github/workflows/404-links.yml b/.github/workflows/404-links.yml new file mode 100644 index 0000000..28b24e3 --- /dev/null +++ b/.github/workflows/404-links.yml @@ -0,0 +1,14 @@ +name: Dead link checker + +on: + push: + branches: [ master ] + pull_request: + types: [assigned, opened, synchronize, reopened] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check links + uses: restqa/404-links@2.2.0