]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Seed pip caches for docs on `main`/`3.x` branches (GH-153127) (#153232)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Jul 2026 09:30:39 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Jul 2026 09:30:39 +0000 (12:30 +0300)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
.github/workflows/reusable-docs.yml

index bee44e8df276639684bf9de7344feb02ba8652be..3de76dd48c59613af944c8916a995321dc919551 100644 (file)
@@ -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