|
|
@ -212,7 +212,7 @@ class ArtifactDeploymentApi:
|
|
|
|
def __init__(self):
|
|
|
|
def __init__(self):
|
|
|
|
self.execution_api = ExecutionApi()
|
|
|
|
self.execution_api = ExecutionApi()
|
|
|
|
|
|
|
|
|
|
|
|
def post_release(self, target_url: str, tag: str, token: str):
|
|
|
|
def create_forgejo_release(self, target_url: str, tag: str, token: str):
|
|
|
|
return self.execution_api.execute_secure(f'curl -X "POST" "{target_url}" '
|
|
|
|
return self.execution_api.execute_secure(f'curl -X "POST" "{target_url}" '
|
|
|
|
+ '-H "accept: application/json" -H "Content-Type: application/json" '
|
|
|
|
+ '-H "accept: application/json" -H "Content-Type: application/json" '
|
|
|
|
+ f'-d "{{ "body": "Provides files for release {tag} Attention: The "Source Code"-files below are not up-to-date!", "tag_name": "{tag}"}}" ' # noqa: E501
|
|
|
|
+ f'-d "{{ "body": "Provides files for release {tag} Attention: The "Source Code"-files below are not up-to-date!", "tag_name": "{tag}"}}" ' # noqa: E501
|
|
|
|