CI: Add a github action that could help to check if links are dead

This commit is contained in:
Olivier
2022-12-23 22:58:04 +07:00
parent 0e6d1ff1ee
commit ab3e0d4e40
2 changed files with 16 additions and 0 deletions

2
.404-links.yml Normal file
View File

@@ -0,0 +1,2 @@
delay:
'https://github.com': 500 #Avoiding Github rate limit by delaying the request -> 500ms

14
.github/workflows/404-links.yml vendored Normal file
View File

@@ -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