You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5aebb5e
Browse filesBrowse the repository at this point in the historyBrowse files
ci: save pre-commit cache only from the default branch
The single actions/cache step saved a ~260 MB copy of identical hook
environments on every PR merge ref (refs/pull/N/merge), which GitHub
scopes per ref so no other run can read them. Split the step into
cache/restore + cache/save and gate the save to the default branch, so
PRs restore the shared cache but stop creating per-PR duplicates.
Keep the full Python patch version in the primary key and add a
minor-version restore-key prefix so a runner-image patch bump warm-starts
from the previous cache and re-saves once, instead of exact-hitting a
stale entry and rebuilding every run. Add "ctk-next" to the push triggers
so the save also runs on the private mirror's default branch, keeping this
file byte-identical across both repositories.
0 commit comments