This action checks out the target repository, and runs the liche tool on it. It is loosely based on https://github.com/peter-evans/link-checker.
The action is written for the context of the seL4 repositories, but should work more generally.
This is a minimal Docker action. It mostly uses Docker instead of JavaScript,
so it can run a pre-built liche
binary.
No arguments are required. The following are available.
files
: List of files to checkdir
: Directory to check recursively, default.
exclude
: Regex for which files to excludeexclude_urls
: Regex for which URLs to exclude from checktimeout
: Timeout for link responsedoc_root
: Document root for absolute linksnum_requests
: Maximum number of concurrent requestsverbose
: Print more information if set (default unset)token
: GitHub PA token to authenticate for private repos
Put this into a .github/workflows/
yaml file, e.g. links.yml
:
name: Links
on:
push:
branches:
- master
pull_request:
jobs:
check:
name: Link Check
runs-on: ubuntu-latest
steps:
- uses: seL4/ci-actions/link-check@master
Run make
to build the Docker image for local testing. The image is deployed to dockerhub automatically on push to the master
branch when relevant files change.