Skip to content

Commit

Permalink
fix: #898 Awesome workflow (1 files are not in one and only one direc…
Browse files Browse the repository at this point in the history
…tory) (#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>
  • Loading branch information
straight-into-the-wall and github-actions authored Oct 25, 2021
1 parent 88a8299 commit 779e2f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/awesome_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,15 @@ 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]
if nodir_files:
nodir_file_bad_files = len(nodir_files) - 1
if nodir_file_bad_files:
print(f"{len(nodir_files)} files are not in one and only one directory:")
print("\n".join(nodir_files) + "\n")
bad_files = len(upper_files + space_files + nodir_files)
bad_files = nodir_file_bad_files + len(upper_files + space_files)
if bad_files:
sys.exit(bad_files)
- name: Commit and push changes
run: |
git commit -am "clang-format and clang-tidy fixes for ${GITHUB_SHA::8}" || true
Expand Down
4 changes: 3 additions & 1 deletion DIRECTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@
* [List](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/list.c)
* [List](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/list.h)
* [Main](https://github.com/TheAlgorithms/C/blob/master/data_structures/list/main.c)
* [Queue](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue.c)
* Queue
* [Include](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue/include.h)
* [Queue](https://github.com/TheAlgorithms/C/blob/master/data_structures/queue/queue.c)
* [Stack](https://github.com/TheAlgorithms/C/blob/master/data_structures/stack.c)
* Stack
* [Main](https://github.com/TheAlgorithms/C/blob/master/data_structures/stack/main.c)
Expand Down

0 comments on commit 779e2f0

Please sign in to comment.