mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
doc-sync: strip point release from version before uploading
We create subdirectories for each major release, but not for point releases so strip the suffix if it is present
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
d794c10d96
commit
59e6059513
@@ -94,6 +94,8 @@ def get_latest_version():
|
||||
def main(version, directory, www_target):
|
||||
index_filename = os.path.join(directory, "index.json")
|
||||
nav_filename = os.path.join(directory, "nav.js")
|
||||
# The upload directory does not contain point release suffixes
|
||||
version = re.sub(r"\..+$", "", version)
|
||||
|
||||
current_branch = subprocess.check_output(["git", "branch", "--show-current"], text=True).strip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user