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

Try to fix Lychee github action error #1034

Merged
merged 4 commits into from
Jan 31, 2025
Merged

Try to fix Lychee github action error #1034

merged 4 commits into from
Jan 31, 2025

Conversation

mdlinville
Copy link
Contributor

@mdlinville mdlinville commented Jan 27, 2025

This fixes the Lychee GitHub action so it doesn't fail on each PR

  • Do not run as a PR check
  • Run against main using a cron schedule, for 12:01 AM on the 1st of each month
  • Ignore 429 errors
  • Adjust the syntax for specifying args
  • Give it permission to create GH issues
  • Upgrade the action

@mdlinville mdlinville requested a review from a team as a code owner January 27, 2025 20:46
Copy link

cloudflare-workers-and-pages bot commented Jan 27, 2025

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7b5b014
Status: ✅  Deploy successful!
Preview URL: https://bd4339a4.docodile.pages.dev
Branch Preview URL: https://try-fix-lychee.docodile.pages.dev

View logs

@mdlinville mdlinville force-pushed the try_fix_lychee branch 4 times, most recently from f896b96 to ce5243b Compare January 27, 2025 21:18
Copy link
Contributor

Copy link
Contributor

@johndmulhausen johndmulhausen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I think we should accept 429 responses is to clean up GitHub's rate limiting errors from the reports. We pass in a token and that should be giving us 1000 requests and hour but with the number of commits we push and number of links we have it seems to be hitting the ceiling.

In addition, I think we should convert this to a cron job that we run, say, monthly? It's going to file github issues when there's an issue (and it already has filed several from your tests).

.github/workflows/linkcheck.yml Outdated Show resolved Hide resolved
@mdlinville mdlinville dismissed johndmulhausen’s stale review January 30, 2025 22:37

Discussed offline, we need to merge this so we can see if the crontab works tomorrow!

@mdlinville mdlinville enabled auto-merge (squash) January 30, 2025 22:38
@mdlinville mdlinville merged commit b42ab51 into main Jan 31, 2025
6 checks passed
@mdlinville mdlinville deleted the try_fix_lychee branch January 31, 2025 23:22
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