From 2eb8792cb4d37104d1b5cc896cd63fd2a1ad066c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 10 Jun 2024 18:16:19 +0200 Subject: [PATCH] fix projects url --- cd/projects.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)