Skip to content

Publish weekly updates to main and stop broken updates - #14

Merged
shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-8gce4u
Nov 1, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-8gce4u

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

  • Add a project
  • Update a project
  • Remove a project
  • Add or update a category
  • Change configuration
  • Documentation
  • Other, please describe:

Description:

The list hasn't updated since 2025-11-06, even though the weekly job shows green. Two problems:

  1. The update never reaches main. The step that opens the pull request gets 403 GitHub Actions is not permitted to create or approve pull requests, and || true hid the error. Each week left behind an update/ branch, a tag and a draft release (29 of each so far).
  2. The generated data was broken anyway. GitHub data was missing for almost every project, so the last run (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:

  • generate, then run .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 metadata
  • commit straight to main, tag it, and publish the release (not a draft), using git and gh only (no more hub, create-branch or auto-commit actions)
  • upload the generated files as a run artifact every time, so a stopped run can be inspected
  • add dry_run and generator_ref inputs for manual runs
  • use a BEST_OF_GITHUB_TOKEN secret if one exists (higher API limit), falling back to the workflow token

It 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.29 output (300 → 18).

Merge best-of-generator#4 first: this workflow installs the generator from its main by default.

The old update/* branches, their tags and the draft releases are no longer needed and can be deleted.

Checklist:

  • I have read the CONTRIBUTING guidelines.
  • I have not modified the README.md file. Projects are only supposed to be added or updated within the projects.yaml file since the README.md file is automatically generated.

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).
@shenxianpeng
shenxianpeng merged commit a9265cc into main Nov 1, 2026
3 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-8gce4u branch November 1, 2026 17:45
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.

1 participant