File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666version_stable = 34 # mapped to https://docs.nextcloud.com/server/stable/
6767import re as _re
6868# 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).
6971# For PRs: GITHUB_BASE_REF is the target branch (e.g. 'stable34').
7072# For direct pushes: GITHUB_REF is 'refs/heads/stable34'.
7173_base = os .environ .get ('GITHUB_BASE_REF' , '' )
7274_ref = os .environ .get ('GITHUB_REF' , '' )
7375_stable_ver = (
74- _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 )
7578 or _re .match (r'^refs/heads/stable(\d+)$' , _ref )
7679)
7780display_version = os .environ .get ('DOCS_DISPLAY_VERSION' ) or (
You can’t perform that action at this time.
0 commit comments