Skip to content
Snippets Groups Projects
Verified Commit d6629408 authored by Hugo Renard's avatar Hugo Renard
Browse files

ci: improve app script

parent a9f3cd77
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python3
import argparse,requests,json,tarfile,os
def get_manifest(path):
......@@ -15,8 +17,8 @@ def update_nc(manifest, major=""):
response = requests.get('https://api.github.com/repos/nextcloud/server/releases')
body = response.json()
for version in body:
if (not version["draft"] and not version["prerelease"] and version["name"].startswith("v"+major)):
manifest["version"] = version["name"][1:]
if (not version["draft"] and not version["prerelease"] and version["tag_name"].startswith("v"+major)):
manifest["version"] = version["tag_name"][1:]
break
def update_apps(manifest):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment