Skip to content

Commit 5cca0eb

Browse files
straight-into-the-wallgithub-actions
andauthored
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>
1 parent 7a324e2 commit 5cca0eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/awesome_workflow.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,12 @@ jobs:
137137
print("\n".join(space_files) + "\n")
138138
139139
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]
140-
nodir_file_bad_files = len(nodir_files) - 1
141-
if nodir_file_bad_files:
140+
if len(nodir_files) > 1:
141+
nodir_file_bad_files = len(nodir_files) - 1
142142
print(f"{len(nodir_files)} files are not in one and only one directory:")
143143
print("\n".join(nodir_files) + "\n")
144+
else:
145+
nodir_file_bad_files = 0
144146
145147
bad_files = nodir_file_bad_files + len(upper_files + space_files)
146148
if bad_files:

0 commit comments

Comments
 (0)