From 9ca58e6e8aa215c9f59b3283ffb5feaddb438b41 Mon Sep 17 00:00:00 2001 From: KaySar12 Date: Fri, 9 May 2025 16:23:04 +0700 Subject: [PATCH] update --- bifrost.json | 2 +- scripts/main.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bifrost.json b/bifrost.json index b4377ce..7be94e5 100644 --- a/bifrost.json +++ b/bifrost.json @@ -1,7 +1,7 @@ { "id": "bifrost", "name": "Bifrost", - "description": "Bifrost is a platform for building and deploying applications....", + "description": "Bifrost is a platform for building and deploying applications.", "deployment": { "type": "native" }, diff --git a/scripts/main.py b/scripts/main.py index 1a2c8ef..751cf54 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -3,6 +3,7 @@ from gitea.config import GiteaConfig import giteapy import os import json +from datetime import datetime def main(): @@ -22,6 +23,15 @@ def main(): repo=repo, 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 attachment_id = None for asset in assets: