fix projects url
Some checks failed
/ job (push) Failing after 14m5s

This commit is contained in:
Marc Beninca 2024-06-10 18:16:19 +02:00
parent bdd58e90f2
commit 2eb8792cb4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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)