This commit is contained in:
2025-05-09 16:49:50 +07:00
parent 9a563364ea
commit b04c37caf3
+11 -14
View File
@@ -8,23 +8,20 @@ from datetime import datetime
from gitea import GiteaUtils
current_file_path = os.path.abspath(__file__)
params = {
"owner": "CDN",
"repo": "bifrost-registry",
"release_id": 8845,
"attachment_path": os.path.abspath(
os.path.join(os.path.dirname(current_file_path), "..", "registry.zip")
),
}
def main():
gitea_instance = GiteaApi()
gitea_utils = GiteaUtils(gitea_instance)
current_file_path = os.path.abspath(__file__)
# Parameters
owner = "CDN"
repo = "bifrost-registry"
release_id = 8845
attachment_path = os.path.abspath(
os.path.join(os.path.dirname(current_file_path), "..", "registry.zip")
)
params = {
"owner": owner,
"repo": repo,
"release_id": release_id,
"attachment_path": attachment_path,
}
assets = gitea_utils.get_release(**params).assets
gitea_utils.update_release(**params)
for asset in assets: