update
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"deployment": {
|
"deployment": {
|
||||||
"type": "native"
|
"type": "native"
|
||||||
},
|
},
|
||||||
"locinstallationation": {
|
"installation": {
|
||||||
"host_type": "local"
|
"host_type": "local"
|
||||||
},
|
},
|
||||||
"tags": [],
|
"tags": [],
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ def main():
|
|||||||
gitea_instance = GiteaApi()
|
gitea_instance = GiteaApi()
|
||||||
gitea_utils = GiteaUtils(gitea_instance)
|
gitea_utils = GiteaUtils(gitea_instance)
|
||||||
assets = gitea_utils.get_release(**params).assets
|
assets = gitea_utils.get_release(**params).assets
|
||||||
|
if not os.path.isfile(params["attachment_path"]):
|
||||||
|
print(f"File {params['attachment_path']} does not exist")
|
||||||
|
exit(1)
|
||||||
gitea_utils.update_release(**params)
|
gitea_utils.update_release(**params)
|
||||||
for asset in assets:
|
for asset in assets:
|
||||||
if asset.name == "registry.zip":
|
if asset.name == "registry.zip":
|
||||||
|
|||||||
Reference in New Issue
Block a user