mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
action
This commit is contained in:
parent
81fc74b984
commit
d305302981
1 changed files with 2 additions and 6 deletions
|
@ -22,12 +22,8 @@ mylists=ReadLists("add")
|
|||
# 批量处理,创建项目文件夹,issue
|
||||
for mylist in mylists:
|
||||
print("处理 "+mylist+" ...\n")
|
||||
path=os.getcwd()+"/"+mylist+"/README.md"
|
||||
print(path)
|
||||
print(os.path.exists(path))
|
||||
if not os.path.exists(path):
|
||||
os.system("git clone --depth https://github.com/Websoft9/ansible-template "+ mylist)
|
||||
os.system("cd "+ mylist +" && rm -rf .git .github docs")
|
||||
os.system("git clone --depth=1 https://github.com/Websoft9/ansible-template "+ mylist)
|
||||
os.system("cd "+ mylist +" && rm -rf .git .github docs")
|
||||
os.system("echo '' > lists")
|
||||
|
||||
print("\n执行完成,并清空列表")
|
Loading…
Reference in a new issue