refactor(readme-generator/regen_readme_in_batch): add main and remove unused import
This commit is contained in:
parent
2e500bde08
commit
de40cd2c64
1 changed files with 14 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
||||||
import time
|
import time
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import hmac
|
|
||||||
import shlex
|
import shlex
|
||||||
import asyncio
|
import asyncio
|
||||||
import tempfile
|
import tempfile
|
||||||
|
@ -57,15 +56,17 @@ async def regen_readme(repository, branch):
|
||||||
|
|
||||||
print("Updated {repo}")
|
print("Updated {repo}")
|
||||||
|
|
||||||
skip = True
|
|
||||||
apps = json.load(open("../../builds/default/v3/apps.json"))["apps"]
|
if __name__ == '__main__':
|
||||||
for app, infos in apps.items():
|
skip = True
|
||||||
if not "github.com" in infos["git"]["url"]:
|
apps = json.load(open("../../builds/default/v3/apps.json"))["apps"]
|
||||||
continue
|
for app, infos in apps.items():
|
||||||
if app == "dendrite":
|
if "github.com" not in infos["git"]["url"]:
|
||||||
skip = False
|
continue
|
||||||
if skip:
|
if app == "dendrite":
|
||||||
continue
|
skip = False
|
||||||
print(app)
|
if skip:
|
||||||
time.sleep(2)
|
continue
|
||||||
asyncio.run(regen_readme(infos["git"]["url"].replace("https://github.com/", ""), infos["git"]["branch"]))
|
print(app)
|
||||||
|
time.sleep(2)
|
||||||
|
asyncio.run(regen_readme(infos["git"]["url"].replace("https://github.com/", ""), infos["git"]["branch"]))
|
||||||
|
|
Loading…
Reference in a new issue