Repository navigation
chore(ci): refresh v2 models.dev snapshot on a schedule - #50030
Merged
Merged
Conversation
rldona
pushed a commit
to rldona/FlupCode
that referenced
this pull request
Sep 24, 2026
Jovan1666
pushed a commit
to Jovan1666/opencode
that referenced
this pull request
Oct 4, 2026
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.
Same workflow as #50010, opened against
devbecauseschedule:triggers only fire from the repository's default branch.Every 30 minutes (or on manual dispatch) this checks out
v2, runspackages/core/script/update-models-snapshot.ts, and ifpackages/core/src/models-dev/snapshot.txtchanged, commits it straight tov2as the OpenCode bot — the samesetup-git-committer+pull --rebase+push HEAD:v2patternnix-hashes.ymluses. Nothing ondevis read or written except this workflow file itself.Context: that snapshot is v2's boot-time catalog floor on a cold cache. It went unrefreshed from 2026-08-11 until #50009, so every v2 release in between shipped a catalog ~1,500 models behind live.
Notes:
oven-sh/setup-bundirectly instead of the repo'ssetup-buncomposite: the script is dependency-free (fetch+Bun.write), so the monorepobun installwould be wasted every half hour.v2, which triggers v2'spublish.yml(dev channel), same asnix-hashescommits do today. models.dev changes a few times a day, so expect a few extra dev publishes. Appending[skip ci]to the commit message is a one-line change if that's unwanted.v2. Merging both is harmless — only the default branch's copy schedules, so there's no double run — and it means the cron keeps working unchanged whenv2becomes the default.