diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 276b1875..582bc9c6 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -137,10 +137,12 @@ jobs: print("\n".join(space_files) + "\n") nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file] - nodir_file_bad_files = len(nodir_files) - 1 - if nodir_file_bad_files: + if len(nodir_files) > 1: + nodir_file_bad_files = len(nodir_files) - 1 print(f"{len(nodir_files)} files are not in one and only one directory:") print("\n".join(nodir_files) + "\n") + else: + nodir_file_bad_files = 0 bad_files = nodir_file_bad_files + len(upper_files + space_files) if bad_files: