From d42382027e2cb674ae5ce7f478b951c3e997265e Mon Sep 17 00:00:00 2001 From: PAPAMICA Date: Thu, 12 May 2022 10:23:13 +0200 Subject: [PATCH] add numbre --- .github/workflows/Readme-template.md | 4 ++-- .github/workflows/generate-template-json.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Readme-template.md b/.github/workflows/Readme-template.md index 9be1bfa..af83fc5 100644 --- a/.github/workflows/Readme-template.md +++ b/.github/workflows/Readme-template.md @@ -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## --- diff --git a/.github/workflows/generate-template-json.py b/.github/workflows/generate-template-json.py index fe5a197..d91fcf1 100755 --- a/.github/workflows/generate-template-json.py +++ b/.github/workflows/generate-template-json.py @@ -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 !") \ No newline at end of file