Skip to content

Commit

Permalink
Fix and lock link checker at lycheeverse/lychee-action@v1.2.0. (#109)
Browse files Browse the repository at this point in the history
* Fix and lock link checker at lycheeverse/lychee-action@v1.2.0.

Signed-off-by: dblock <dblock@amazon.com>

* Don't check e-mail addresses.

Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock authored Jan 3, 2022
1 parent c04382d commit 24e1ac9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
name: Link Checker
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
linkchecker:
on: [push, pull_request]

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: lychee Link Checker
id: lychee
uses: lycheeverse/lychee-action@master
- name: Lychee Link Checker
uses: lycheeverse/lychee-action@v1.2.0
with:
args: --accept=200,403,429 --exclude=https://www.envoyproxy.io/ "**/*.html" "**/*.md" "**/*.txt"
args: --accept=200,403,429 --exclude-mail **/*.html **/*.md **/*.txt **/*.json --exclude-file .lychee.excludes
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
1 change: 1 addition & 0 deletions .lychee.excludes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.envoyproxy.io/

0 comments on commit 24e1ac9

Please sign in to comment.