update
This commit is contained in:
+11
-14
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user