Skip to content

Commit b8e3c38

Browse files
straight-into-the-wallgithub-actionsPanquesito7
authored
fix: #898 another fix for Awesome workflow nodir_files problem (#901)
* 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: #898 revert the nodir_files check version prior 2c86fbb * fix: revert 1.c changes * Apply suggestions from code review Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: David Leal <[email protected]>
1 parent 779e2f0 commit b8e3c38

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/awesome_workflow.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,12 @@ jobs:
136136
print(f"{len(space_files)} files contain space or dash characters:")
137137
print("\n".join(space_files) + "\n")
138138
139-
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:
139+
nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "leetcode" not in file and "data_structure" not in file]
140+
if nodir_files:
142141
print(f"{len(nodir_files)} files are not in one and only one directory:")
143142
print("\n".join(nodir_files) + "\n")
144-
145-
bad_files = nodir_file_bad_files + len(upper_files + space_files)
143+
144+
bad_files = len(upper_files + space_files + nodir_files)
146145
if bad_files:
147146
sys.exit(bad_files)
148147

0 commit comments

Comments
 (0)