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 json
|
||||
import os
|
||||
import hmac
|
||||
import shlex
|
||||
import asyncio
|
||||
import tempfile
|
||||
|
@ -57,15 +56,17 @@ async def regen_readme(repository, branch):
|
|||
|
||||
print("Updated {repo}")
|
||||
|
||||
skip = True
|
||||
apps = json.load(open("../../builds/default/v3/apps.json"))["apps"]
|
||||
for app, infos in apps.items():
|
||||
if not "github.com" in infos["git"]["url"]:
|
||||
continue
|
||||
if app == "dendrite":
|
||||
skip = False
|
||||
if skip:
|
||||
continue
|
||||
print(app)
|
||||
time.sleep(2)
|
||||
asyncio.run(regen_readme(infos["git"]["url"].replace("https://github.com/", ""), infos["git"]["branch"]))
|
||||
|
||||
if __name__ == '__main__':
|
||||
skip = True
|
||||
apps = json.load(open("../../builds/default/v3/apps.json"))["apps"]
|
||||
for app, infos in apps.items():
|
||||
if "github.com" not in infos["git"]["url"]:
|
||||
continue
|
||||
if app == "dendrite":
|
||||
skip = False
|
||||
if skip:
|
||||
continue
|
||||
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