From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 7 Jul 2026 09:30:34 +0000 (+0200) Subject: [3.15] Seed pip caches for docs on `main`/`3.x` branches (GH-153127) (#153231) X-Git-Tag: v3.15.0b4~91 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=60ced362180013109abef8d920cd61f6e7d54f08;p=thirdparty%2FPython%2Fcpython.git [3.15] Seed pip caches for docs on `main`/`3.x` branches (GH-153127) (#153231) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index 7b524569f85c..50d61ef20c65 100644 --- a/.github/workflows/reusable-docs.yml +++ b/.github/workflows/reusable-docs.yml @@ -3,6 +3,17 @@ name: Reusable Docs on: workflow_call: workflow_dispatch: + # Pushes to CPython branches seed the pip caches under the exact keys every + # docs PR restores from. Without a branch-scoped copy, each PR saves a + # duplicate into its own refs/pull/N/merge scope that nothing else can read. + push: + branches: + - main + - '3.*' + paths: + - 'Doc/pylock.toml' + - 'Doc/requirements.txt' + - '.github/workflows/reusable-docs.yml' permissions: contents: read