parent
bdd58e90f2
commit
2eb8792cb4
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
||||||
"""CI projects."""
|
"""CI projects."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from urllib.parse import urljoin
|
||||||
|
|
||||||
GROUP_AND_NAME = [
|
GROUP_AND_NAME = [
|
||||||
"GITHUB_REPOSITORY",
|
"GITHUB_REPOSITORY",
|
||||||
|
@ -26,4 +28,4 @@ class Projects:
|
||||||
# url
|
# url
|
||||||
for variable in SERVER_URL:
|
for variable in SERVER_URL:
|
||||||
if value := self.environment.get(variable, None):
|
if value := self.environment.get(variable, None):
|
||||||
self.url = Path(value) / self.group
|
self.url = urljoin(value, self.group)
|
||||||
|
|
Loading…
Reference in a new issue