Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Oct 9, 2024

Changes

This upgrades from a nightly version of lychee, the link checker, to the latest version.

Context

To make use of lychee, we needed to first contribute a change where it can imitate the logic of GitHub Pages where URLs do not need to contain the .html extension but will still resolve to the correct page.

For a long time, this feature was only available in the nightly version of lychee. As of 3 days ago, there is now a stable release of lychee that includes this feature. As of yesterday, the lychee project provides a version of the corresponding GitHub Action that uses that lychee version by default. So let's upgrade.

While at it, touch up the logic around the lychee steps some.

@dscho
Copy link
Member Author

dscho commented Oct 9, 2024

@ttaylorr I fear that this test failure requires #1900 to be merged first; Could you give it a review?

dscho added 4 commits October 9, 2024 18:46
There is now a v2 of `lychee-action` and we no longer need to use the
nightly version because lychee v0.16.1 includes support for the option
to fall back on appending the `.html` file extension.

Signed-off-by: Johannes Schindelin <[email protected]>
If the link check was not run for any particular reason, we do not have
enough information to open, update or close a "broken link(s)" ticket.

Signed-off-by: Johannes Schindelin <[email protected]>
If lychee's exit code is 0, we want to close any open "broken link(s)"
ticket, not when its exit code is non-zero.

Not that it matters much because GitHub Actions seems not to show the
labels of composite Actions in the logs, at least not at time of
writing.

Signed-off-by: Johannes Schindelin <[email protected]>
Otherwise it does not make much sense trying to upload the results.

Not that it matters much: If the file does not exist, there will be a
warning and nothing gets uploaded anyway.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho merged commit a29d864 into git:gh-pages Oct 9, 2024
1 check passed
@dscho dscho deleted the upgrade-lychee branch October 9, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants