From 779e2f073e30694c6448e8f988e54e3ae007caf4 Mon Sep 17 00:00:00 2001 From: straight-into-the-wall <92807553+straight-into-the-wall@users.noreply.github.com> Date: Mon, 25 Oct 2021 21:27:09 +0200 Subject: [PATCH] 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> --- .github/workflows/awesome_workflow.yml | 8 +++++--- DIRECTORY.md | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/awesome_workflow.yml b/.github/workflows/awesome_workflow.yml index 184dee4c..276b1875 100644 --- a/.github/workflows/awesome_workflow.yml +++ b/.github/workflows/awesome_workflow.yml @@ -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 diff --git a/DIRECTORY.md b/DIRECTORY.md index 482d8b4e..51853806 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -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)