update
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "bifrost",
|
"id": "bifrost",
|
||||||
"name": "Bifrost",
|
"name": "Bifrost",
|
||||||
"description": "Bifrost is a platform for building and deploying applications....",
|
"description": "Bifrost is a platform for building and deploying applications.",
|
||||||
"deployment": {
|
"deployment": {
|
||||||
"type": "native"
|
"type": "native"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ from gitea.config import GiteaConfig
|
|||||||
import giteapy
|
import giteapy
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@@ -22,6 +23,15 @@ def main():
|
|||||||
repo=repo,
|
repo=repo,
|
||||||
id=release_id, # Release ID
|
id=release_id, # Release ID
|
||||||
)
|
)
|
||||||
|
|
||||||
|
update_release_response = repo_instance.repo_edit_release(
|
||||||
|
owner=owner,
|
||||||
|
repo=repo,
|
||||||
|
id=release_id, # Release ID
|
||||||
|
body=giteapy.EditReleaseOption(
|
||||||
|
name=f"Bifrost Registry {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}"
|
||||||
|
),
|
||||||
|
)
|
||||||
assets = get_release_response.assets
|
assets = get_release_response.assets
|
||||||
attachment_id = None
|
attachment_id = None
|
||||||
for asset in assets:
|
for asset in assets:
|
||||||
|
|||||||
Reference in New Issue
Block a user