Repository navigation
Publish weekly updates to main and stop broken updates - #14
Merged
Merged
Conversation
The weekly job has not updated the list since moving to mkdocs-ng: the step that opens the pull request gets a 403 (Actions may not create pull requests here) and the error was swallowed by '|| true'. Every week left behind an update/ branch, a tag and a draft release, and main stayed on the 2025-11-06 data. The update now commits straight to main, tags it and publishes the release. Before that, a check compares the result with the current README and stops the update if more than 10% of the projects disappear or fewer than 90% of GitHub projects got metadata. The last automatic run would have shrunk the list from 300 to 18 projects. Also adds a dry-run switch for manual runs, lets a BEST_OF_GITHUB_TOKEN secret raise the API rate limit, and drops the unused pypi patch script (the fork already contains that fix).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Description:
The list hasn't updated since 2025-11-06, even though the weekly job shows green. Two problems:
403 GitHub Actions is not permitted to create or approve pull requests, and|| truehid the error. Each week left behind anupdate/branch, a tag and a draft release (29 of each so far).update/2026.10.29) would have shrunk the README from 300 projects to 18. This is fixed in Fix GitHub metadata missing when running with a GitHub Actions token best-of-generator#4.This PR changes the workflow to:
.github/scripts/check_update.py, which stops the update if more than 10% of the projects disappear or fewer than 90% of GitHub projects got metadatamain, tag it, and publish the release (not a draft), usinggitandghonly (no more hub, create-branch or auto-commit actions)dry_runandgenerator_refinputs for manual runsBEST_OF_GITHUB_TOKENsecret if one exists (higher API limit), falling back to the workflow tokenIt also removes
.github/patch_pypi_integration.py, which nothing calls; the generator fork already has that fix.Tested with dry runs from this branch using the generator from best-of-generator#4: the check passes with 300 → 300 projects and 287 of 294 GitHub projects with data. The check also correctly rejects the old
update/2026.10.29output (300 → 18).Merge best-of-generator#4 first: this workflow installs the generator from its
mainby default.The old
update/*branches, their tags and the draft releases are no longer needed and can be deleted.Checklist:
README.mdfile. Projects are only supposed to be added or updated within theprojects.yamlfile since theREADME.mdfile is automatically generated.