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

index 7b524569f85c9e81da706bd859b54c029e4e151b..50d61ef20c65945a7a9b563ebcfde1a0346298c0 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