From 37bb061720c84fc69f07032b13ea3dd7346940d3 Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Wed, 8 Jan 2025 14:19:44 +0100 Subject: [PATCH] update lychee link checker, see #583 --- .forgejo/workflows/links.yml | 7 +++---- docs/user/actions.md | 2 +- lychee.toml | 12 +++++++++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/links.yml b/.forgejo/workflows/links.yml index 02a1dbf4..f3248706 100644 --- a/.forgejo/workflows/links.yml +++ b/.forgejo/workflows/links.yml @@ -18,16 +18,15 @@ jobs: - name: Install lychee run: | 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" - rm "lychee-v0.15.0-x86_64-unknown-linux-gnu.tar.gz" - install -t "$HOME/.local/bin" -D lychee + curl -sLO "https://github.com/lycheeverse/lychee/releases/download/lychee-v0.18.0/lychee-x86_64-unknown-linux-gnu.tar.gz" + tar -xvzf "lychee-x86_64-unknown-linux-gnu.tar.gz" + rm "lychee-x86_64-unknown-linux-gnu.tar.gz" - name: Link Checker id: lychee 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 diff --git a/docs/user/actions.md b/docs/user/actions.md index 2d15add9..745c15db 100644 --- a/docs/user/actions.md +++ b/docs/user/actions.md @@ -1,7 +1,7 @@ --- title: 'Forgejo Actions user guide' license: 'CC-BY-SA-4.0' -similar: 'https://github.com/go-gitea/gitea/blob/main/docs/content/usage/actions/faq.en-us.md https://docs.github.com/en/actions' +similar: 'https://docs.gitea.com/usage/actions/overview https://docs.github.com/en/actions' --- `Forgejo Actions` provides Continuous Integration driven from the files in the `.forgejo/workflows` directory of a repository, with a web interface to show the results. The syntax and semantics of the `workflow` files will be familiar to people used to [GitHub Actions](https://docs.github.com/en/actions) but **they are not and will never be identical**. diff --git a/lychee.toml b/lychee.toml index f36e401b..a08396f8 100644 --- a/lychee.toml +++ b/lychee.toml @@ -1,9 +1,15 @@ no_progress = true output = "report.md" -cache = true accept = ["200", "429"] -scheme = ["https","http"] +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 = [ + 'https://forgejo\.octopuce\.forgejo\.org', + 'http://private.forgejo.org', + 'https://code.forgejo.org/api/v1', + 'https://codeberg.org/forgejo/forgejo/vX.Y/forgejo', + 'https://dash\.cloudflare\.com/\?to\=/\:account/turnstile', + 'https://img.shields.io/badge/%7B%7B.label%7D%7D-%7B%7B.text%7D%7D-%7B%7B.color%7D%7D', +] exclude_all_private = true