From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 6 Jul 2026 19:46:22 +0000 (+0300) Subject: Seed pip caches for docs on `main`/`3.x` branches (#153127) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28aa32d8527b7bf15cb8c087ead02aa4e7510460;p=thirdparty%2FPython%2Fcpython.git Seed pip caches for docs on `main`/`3.x` branches (#153127) --- diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index a792553a63b8..199e0fd8d181 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