Fix release.py script, was using an old api endpoint
This commit is contained in:
parent
a73bc97fd5
commit
75a750328a
1 changed files with 5 additions and 2 deletions
|
@ -126,10 +126,13 @@ def main():
|
||||||
- [Debian Package]({debian_url}) ([sha256]({debian_sha_url}))
|
- [Debian Package]({debian_url}) ([sha256]({debian_sha_url}))
|
||||||
- Docker image: registry.gitlab.com/{project_name}:{release_tag}'''
|
- Docker image: registry.gitlab.com/{project_name}:{release_tag}'''
|
||||||
|
|
||||||
post_body: str = json.dumps({'description': augmented_changelog})
|
post_body: str = json.dumps({
|
||||||
|
'tag_name': release_tag,
|
||||||
|
'description': augmented_changelog
|
||||||
|
})
|
||||||
|
|
||||||
gitlab_release_api_url: str = \
|
gitlab_release_api_url: str = \
|
||||||
f'https://gitlab.com/api/v4/projects/{project_id}/repository/tags/{release_tag}/release'
|
f'https://gitlab.com/api/v4/projects/{project_id}/releases'
|
||||||
headers: Dict[str, str] = {
|
headers: Dict[str, str] = {
|
||||||
'Private-Token': api_token,
|
'Private-Token': api_token,
|
||||||
'Content-Type': 'application/json; charset=utf-8',
|
'Content-Type': 'application/json; charset=utf-8',
|
||||||
|
|
Loading…
Reference in a new issue