From b5baf98a9950b1b209592a4fc0381c3053482a2f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sun, 5 Apr 2026 05:15:50 +0000 Subject: [PATCH] Change link-checker to lychee and weekly checks (#181) Lychee is a better link checker and faster Reviewed-on: https://gitea.com/gitea/awesome-gitea/pulls/181 Reviewed-by: Lunny Xiao Co-authored-by: Nicolas Co-committed-by: Nicolas --- .gitea/workflows/testlinks.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/testlinks.yml b/.gitea/workflows/testlinks.yml index b8aa641..e9a3cf8 100644 --- a/.gitea/workflows/testlinks.yml +++ b/.gitea/workflows/testlinks.yml @@ -1,16 +1,26 @@ -name: Test links +name: Link checker + on: - - push - - pull_request + push: + pull_request: + schedule: + - cron: '0 0 * * 0' # Sunday 00:00 UTC jobs: - check_urls: + lychee: + name: lychee runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Checkout repository - uses: actions/checkout@v2 - - name: Link check action - uses: serega404/links-check-action@v0.0.1 + uses: actions/checkout@v4 + + - name: Link Checker + uses: lycheeverse/lychee-action@v2 with: - filePath: "README.md" - ignoreCodes: "403,418" \ No newline at end of file + jobSummary: false + args: >- + --no-progress + --max-redirects 0 + --accept 100..=103,200..=299,301..=308,403,418 + '**/*.md'