Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade lychee #1902

Merged
merged 4 commits into from
Oct 9, 2024
Merged

Upgrade lychee #1902

merged 4 commits into from
Oct 9, 2024

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?

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 <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
@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