2 parents 231009e + 9ce6e43 commit acf27c4Copy full SHA for acf27c4
1 file changed
conf.py
@@ -66,12 +66,15 @@
66
67
import re as _re
68
# Detect stable branch version for display purposes.
69
+# In the consolidated deploy DOCS_DISPLAY_VERSION carries the built version (the
70
+# reserved GITHUB_* refs cannot be set per matrix leg).
71
# For PRs: GITHUB_BASE_REF is the target branch (e.g. 'stable33').
72
# For direct pushes: GITHUB_REF is 'refs/heads/stable33'.
73
_base = os.environ.get('GITHUB_BASE_REF', '')
74
_ref = os.environ.get('GITHUB_REF', '')
75
_stable_ver = (
- _re.match(r'^stable(\d+)$', _base)
76
+ _re.match(r'^(\d+)$', os.environ.get('DOCS_DISPLAY_VERSION', ''))
77
+ or _re.match(r'^stable(\d+)$', _base)
78
or _re.match(r'^refs/heads/stable(\d+)$', _ref)
79
)
80
display_version = os.environ.get('DOCS_DISPLAY_VERSION') or (
0 commit comments