From c25ddbfa25de524dbea9a570fe35b1522a9025e1 Mon Sep 17 00:00:00 2001 From: Sam Kim Date: Wed, 6 Mar 2024 16:01:31 -0500 Subject: [PATCH] Replace lychee with linkcheck --- .github/workflows/link-checker-full.yaml | 19 +++++++++++++++++++ .github/workflows/link-checker.yaml | 7 +++---- linkcheck-skip.txt | 5 +++++ 3 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/link-checker-full.yaml create mode 100644 linkcheck-skip.txt diff --git a/.github/workflows/link-checker-full.yaml b/.github/workflows/link-checker-full.yaml new file mode 100644 index 0000000..477109d --- /dev/null +++ b/.github/workflows/link-checker-full.yaml @@ -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" diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index c469dd2..4149ead 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -1,5 +1,5 @@ --- -name: "Link Checker (Fail Fast)" +name: "Link Checker" on: push: @@ -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 }}" diff --git a/linkcheck-skip.txt b/linkcheck-skip.txt new file mode 100644 index 0000000..24a5bed --- /dev/null +++ b/linkcheck-skip.txt @@ -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