0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-11-23 17:59:25 -05:00

Exclude links (#595)

Added excludes for some site errors. Added issue update on fail

Reviewed-on: https://codeberg.org/forgejo/docs/pulls/595
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
This commit is contained in:
TheFox0x7 2024-05-06 21:18:46 +00:00 committed by Earl Warren
parent d597a359c2
commit 5471e62e60
2 changed files with 26 additions and 4 deletions

View file

@ -7,11 +7,16 @@ jobs:
linkChecker: linkChecker:
runs-on: docker runs-on: docker
steps: steps:
- uses: actions/checkout@v4 - name: Checkout next
uses: actions/checkout@v4
- name: Checkout v7
uses: actions/checkout@v4
with:
path: v7
- name: Install lychee - name: Install lychee
run: | run: |
# Cleanup artifacts from previous run in case it crashed
rm -rf "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz" lychee
curl -sLO "https://github.com/lycheeverse/lychee/releases/download/v0.15.0/lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz" curl -sLO "https://github.com/lycheeverse/lychee/releases/download/v0.15.0/lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz"
tar -xvzf "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz" tar -xvzf "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz"
rm "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz" rm "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz"
@ -19,4 +24,12 @@ jobs:
- name: Link Checker - name: Link Checker
id: lychee id: lychee
run: ./lychee --verbose --no-progress --scheme http --scheme https -f markdown -E ./docs run: ./lychee docs v7/docs --format markdown
- name: Update issue
if: failure()
uses: https://github.com/peter-evans/create-issue-from-file@v5.0.0
with:
title: Dead links report
issue-number: 583
content-filepath: ./report.md

9
lychee.toml Normal file
View file

@ -0,0 +1,9 @@
no_progress = true
output = "report.md"
cache = true
accept = ["200", "429"]
scheme = ["https","http"]
skip_missing = false
include_verbatim = false
exclude = ['^https://forgejo\.octopuce\.forgejo\.org','http://private.forgejo.org', 'https://codeberg.org/forgejo/forgejo/vX.Y/forgejo']
exclude_all_private = true