Make generated pipeline more PR-friendly and regenerate.

This commit is contained in:
Steve Smith
2021-03-02 15:22:20 +11:00
parent 470df7a1e9
commit 4a499ef020
2 changed files with 288 additions and 277 deletions

View File

@@ -8,9 +8,9 @@ ROLES_DIR = 'roles/'
def find_all_scenarios():
scenario_dirs = []
for root, dirs, files in os.walk(Path(os.path.join(os.path.dirname(__file__), "..", ROLES_DIR))):
for root, dirs, files in os.walk('..'):
[scenario_dirs.append(Path(root)) for f in files if f.endswith("molecule.yml")]
return scenario_dirs
return sorted(scenario_dirs)
def load_template():