Bot releases are hidden (Show)
Published by mre over 2 years ago
This will be the default in the next major version, but can already be tested with the following config:
- name: Link Checker
uses: lycheeverse/[email protected]
with:
# Recursively check all supported files (html, markdown for now) in repo
args: --verbose --no-progress .
lychee supports plaintext files as well as many other formats, but as of now lychee .
is conservative and
will only check HTML and Markdown files. So it should be a safe replacement for the current default:
'./**/*.md' './**/*.html'
. It should also be faster and will use less file-handles than glob patterns.
.lycheeignore
file https://github.com/lycheeverse/lychee/issues/308 (https://github.com/lycheeverse/lychee/pull/402)Especially the .lycheeignore
part should be helpful for folks that used workarounds like custom ignore files before.
This is now a native feature of lychee. See https://github.com/lycheeverse/lychee/issues/308 for more info.
Full lychee 0.8.2 changelog here.
Published by mre over 2 years ago
Glob patterns were not properly evaluated for three reasons:
**
patterns handled by the glob crate need to be prefixed with a separator, e.g. ./
. See code here and here. We should probably switch to globset at some point, which doesn't have that limitation.eval
to make it find links. Otherwise it interprets the input argument (${ARGS[@]}
) as a string and tries to find links within that string. (String input is supported by lychee). We want to interpret it as individual (whitespace-separated) arguments however. (Note that Github Actions doesn't support arrays as inputs, which prevents us from using array splitting.)Recommended usage inside pipelines: Surround glob patterns with single quotes and prefix them with ./
.
- name: Link Checker
uses: lycheeverse/[email protected]
with:
# Check all Markdown and HTML files
args: --verbose --no-progress './**/*.md' './**/*.html'
For more context, see #67 and #68.
The examples have been updated accordingly.
Published by mre almost 3 years ago
Input | Example | Description |
---|---|---|
format | json | Use json as output format (instead of markdown) |
output | /tmp/foo.json | Use different output filename |
fail | true | Fail action on broken links |
- name: Link Checker
uses: lycheeverse/[email protected]
with:
# Check all markdown and html files in repo (default)
args: --verbose --no-progress **/*.md **/*.html
# Use json as output format (instead of markdown)
format: json
# Use different output filename
output: /tmp/foo.txt
# Fail action on broken links
fail: true
Update to lychee 0.8.1 with support for markdown output.
See https://github.com/lycheeverse/lychee/releases/tag/v0.8.1 for changelog.
Published by mre almost 3 years ago
Update to lychee 0.8.0 with local file support and more.
See https://github.com/lycheeverse/lychee/releases/tag/v0.8.0 for changelog.
Published by mre about 3 years ago
Published by mre over 3 years ago
Published by mre over 3 years ago
Assume HTML for URLs and paths without extension. (https://github.com/lycheeverse/lychee/issues/213) Fixes https://github.com/lycheeverse/lychee/issues/183
Published by mre over 3 years ago
Rename to Lychee Broken Link Checker
Published by mre over 3 years ago
Fix error code propagation (see https://github.com/lycheeverse/lychee-action/issues/20)
Published by mre over 3 years ago
Bugfixes concerning issue creation
Published by mre almost 4 years ago
Handle all error codes (not just 1)
Published by mre almost 4 years ago
Use --output flag for more robust output parsing from lychee.
Published by mre almost 4 years ago
Bugfixes
Published by mre almost 4 years ago
First release of the lychee Github action — an action to check for broken links in Markdown, HTML, and text files using lychee, a fast link checker written in Rust.