From df3f9fcfd411567e3f81a8660914fc736810b779 Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 9 Nov 2022 21:11:04 +0800 Subject: [PATCH] reconfigure lychee url checking exclude github and twitter --- .github/workflows/staging.yml | 14 +++++++------- lychee.toml | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 5cf8d77..1da2b30 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -68,13 +68,13 @@ jobs: with: target: build - # - name: Check for broken links - # uses: lycheeverse/lychee-action@v1 - # with: - # fail: true - # args: --verbose --no-progress './public/**/*.md' './public/**/*.html' - # env: - # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Check for broken links + uses: lycheeverse/lychee-action@v1 + with: + fail: true + args: --verbose --no-progress './public/**/*.md' './public/**/*.html' + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - uses: actions/setup-node@v3 with: diff --git a/lychee.toml b/lychee.toml index 6b90019..468ee26 100644 --- a/lychee.toml +++ b/lychee.toml @@ -5,6 +5,8 @@ base = "./public" exclude-mail = true include = ["./public/**/*.md", "./public/**/*.html"] exclude = [ + "https://github.com/", + "https://twitter.com/", "https://fonts.gstatic.com/", "https://fonts.googleapis.com/", "https://www.clarity.ms/tag/",