From 03d281aaee3e4df1a936e691e94368a029b8b104 Mon Sep 17 00:00:00 2001 From: wieerwill Date: Wed, 6 Dec 2023 21:09:01 +0100 Subject: [PATCH] fix rust auto linting --- .github/workflows/lint.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3f72157..543365d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -57,5 +57,11 @@ jobs: # Lint Rust files - name: Lint Rust run: | - cd Day*/rust - cargo clippy -- -D warnings + for dir in Day*/rust; do + if [ -d "$dir" ]; then + echo "Linting $dir" + cd $dir + cargo clippy -- -D warnings + cd - # Go back to the root directory + fi + done