Adding link checker workflow (#180)
* Adding link checker workflow Signed-off-by: Vacha Shah <vachshah@amazon.com> * Using the latest version for lycheeverse Signed-off-by: Vacha Shah <vachshah@amazon.com> * Fixing links Signed-off-by: Vacha Shah <vachshah@amazon.com> * Fixing test failures due to asyncio Signed-off-by: Vacha Shah <vachshah@amazon.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: Link Checker
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
pull_request:
|
||||
branches:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
linkchecker:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: lychee Link Checker
|
||||
id: lychee
|
||||
uses: lycheeverse/lychee-action@v1.5.0
|
||||
with:
|
||||
args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "file:///github/workspace/*" --exclude-mail
|
||||
fail: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
Reference in New Issue
Block a user