From 32cbea8e48300746879e754618672c5a1270ba95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 14 Oct 2023 18:22:29 +0200 Subject: [PATCH] chore(ci): update the link checker configuration (#315) * chore(lychee): update link checker configuration * refactor(ci): provide GitHub token * refactor(ci): set a custom GitHub token * fix(ci): set concurrency for checking links * chore(ci): ignore more sites for lychee * chore(ci): update lychee ignore list --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- .dockerignore | 1 + .github/workflows/ci.yml | 8 +++----- .lycheeignore | 7 +++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 .lycheeignore diff --git a/.dockerignore b/.dockerignore index bd929a9b30..4cf045c0ce 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,3 +14,4 @@ Dockerfile LICENSE rustfmt.toml _config.yml +.lycheeignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f185dfc01..6b2ce3183a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,11 +101,9 @@ jobs: - name: Check the links uses: lycheeverse/lychee-action@v1 with: - args: > - --exclude "%7Busername%7D|file:///|https://datatracker.ietf.org|protonmail" - -v *.md website/docs/* website/blog/* - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + args: -v --max-concurrency 1 *.md website/docs/* website/blog/* + fail: true + token: ${{ secrets.GITHUB_TOKEN }} audit: name: Audit check diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 0000000000..d994b96ca6 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,7 @@ +file:/// +%7Busername%7D +https://datatracker.ietf.org +protonmail +https://github.com/cocogitto/cocogitto +pypi.org +https://console.substack.com