add numbre

This commit is contained in:
PAPAMICA
2022-05-12 10:23:13 +02:00
parent 9f25e0092d
commit d42382027e
2 changed files with 3 additions and 5 deletions

View File

@@ -25,11 +25,11 @@ https://github.com/PAPAMICA/docker-environment
## List of services availables: (##NB_A##)
## List of services availables:
| Status | Service | Update | Maintainer |
##SERVICES##
## List of services to do: (##NB_TD##)
## List of services to do:
| Status | Service |
##SERVICES_TODO##
---

View File

@@ -95,14 +95,12 @@ try:
readme_template = open(".github/workflows/Readme-template.md", "rt")
readme_result = open("README.md", "wt")
for line in readme_template:
readme_result.write(line.replace('##SERVICES##', SERVICES).replace('##SERVICES_TODO##', SERVICES_TODO).replace('##NB_A##', nb_a).replace('##NB_TD##', nb_td))
readme_result.write(line.replace('##SERVICES##', SERVICES).replace('##SERVICES_TODO##', SERVICES_TODO).replace('## List of services availables:', f"## List of services availables: ({nb_a})").replace('## List of services to do:', f"## List of services to do: ({nb_td})"))
readme_template.close()
readme_result.close()
print ("\n ✅ README.md generated !")
except:
print (" ❌ Error when generate README.md !")
print (SERVICES)
except:
print (" ❌ Error when generate templates-portainer.json !")