Skip to content

Commit 779e2f0

Browse files
straight-into-the-wallgithub-actions
andauthored
fix: #898 Awesome workflow (1 files are not in one and only one directory) (#900)
* 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 awesome-workflow: 1 files are not in one and only one directory * fix: revert 1.c changes Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 88a8299 commit 779e2f0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/awesome_workflow.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,15 @@ 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-
if nodir_files:
140+
nodir_file_bad_files = len(nodir_files) - 1
141+
if nodir_file_bad_files:
141142
print(f"{len(nodir_files)} files are not in one and only one directory:")
142143
print("\n".join(nodir_files) + "\n")
143-
144-
bad_files = len(upper_files + space_files + nodir_files)
144+
145+
bad_files = nodir_file_bad_files + len(upper_files + space_files)
145146
if bad_files:
146147
sys.exit(bad_files)
148+
147149
- name: Commit and push changes
148150
run: |
149151
git commit -am "clang-format and clang-tidy fixes for ${GITHUB_SHA::8}" || true

DIRECTORY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
* [List](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/list.c)
9595
* [List](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/list.h)
9696
* [Main](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/main.c)
97-
* [Queue](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue.c)
97+
* Queue
98+
* [Include](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue/include.h)
99+
* [Queue](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue/queue.c)
98100
* [Stack](https://github.com/TheAlgorithms/C/blob/master/data_structures/stack.c)
99101
* Stack
100102
* [Main](https://github.com/TheAlgorithms/C/blob/master/data_structures/stack/main.c)

0 commit comments

Comments
 (0)