diff --git a/cd/projects.py b/cd/projects.py index fa031f6..63c07f8 100644 --- a/cd/projects.py +++ b/cd/projects.py @@ -1,8 +1,10 @@ """CI projects.""" + from __future__ import annotations import os from pathlib import Path +from urllib.parse import urljoin GROUP_AND_NAME = [ "GITHUB_REPOSITORY", @@ -26,4 +28,4 @@ class Projects: # url for variable in SERVER_URL: if value := self.environment.get(variable, None): - self.url = Path(value) / self.group + self.url = urljoin(value, self.group)