mirror of
https://github.com/marmelab/awesome-rest.git
synced 2026-01-23 19:58:04 -08:00
Merge pull request #2 from olivierodo/link-checker
CI: Add a github action that could help to check if links are dead
This commit is contained in:
2
.404-links.yml
Normal file
2
.404-links.yml
Normal 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
14
.github/workflows/404-links.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user