[Skip-CI] Rename function

This commit is contained in:
erik 2023-08-11 14:46:25 +02:00
parent 39591c8aa9
commit 2469fd2f5b

View file

@ -212,7 +212,7 @@ class ArtifactDeploymentApi:
def __init__(self):
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}" '
+ '-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