From 5cca0ebd4836210bd76e6757cff53be82a75ff23 Mon Sep 17 00:00:00 2001 From: straight-into-the-wall <92807553+straight-into-the-wall@users.noreply.github.com> Date: Wed, 10 Nov 2021 00:16:14 +0100 Subject: [PATCH] fix: Hotfix/awesome zero files (#919) * perf: faster implementation of the TwoSum problem * doc: fixed typos on comments * updating DIRECTORY.md * fix: comments on includes. Doxygen file. static test function * fix: revert 1.c * updating DIRECTORY.md * fix: 0 files are not in one and only one directory Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> --- .github/workflows/awesome_workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 276b18754..582bc9c6f 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: