Skip to content

Commit

Permalink
Replace lychee with linkcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim committed Mar 6, 2024
1 parent 1bd95fc commit c25ddbf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/link-checker-full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: "Link Checker with External Links"

on:
schedule:
- cron: '0 10 * * *' # Daily at 10
workflow_dispatch:

jobs:
link_checker:
name: "Link Checker"
runs-on: "ubuntu-latest"
timeout-minutes: 15
steps:
- uses: "actions/checkout@v3"
- name: "Link Checker"
uses: "filiph/linkcheck@3.0.0"
with:
args: "--skip-file linkcheck-skip.txt -e https://authzed.com/docs"
7 changes: 3 additions & 4 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "Link Checker (Fail Fast)"
name: "Link Checker"

on:
push:
Expand Down Expand Up @@ -29,7 +29,6 @@ jobs:
steps:
- uses: "actions/checkout@v3"
- name: "Link Checker"
uses: "lycheeverse/lychee-action@v1.9.0"
uses: "filiph/linkcheck@3.0.0"
with:
fail: true
args: "--verbose --no-progress --exclude '^https://github.com/.*.mdx' ${{ needs.preview.outputs.preview_url }}"
args: "--skip-file linkcheck-skip.txt ${{ needs.preview.outputs.preview_url }}"
5 changes: 5 additions & 0 deletions linkcheck-skip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.*/_next/.*
https://authzed.com/zanizbar/.*
https://pkg.go.dev/.*
https://pprof.me
https://www.researchgate.net/profile/Carrie-Gates-2/publication/240787391_Access_Control_Requirements_for_Web_20_Security_and_Privacy/links/540e6f670cf2d8daaacd4adf/Access-Control-Requirements-for-Web-20-Security-and-Privacy.pdf

0 comments on commit c25ddbf

Please sign in to comment.