diff --git a/.github/workflows/check-rust.yml b/.github/workflows/check-rust.yml index 5f102d646..bb382a861 100644 --- a/.github/workflows/check-rust.yml +++ b/.github/workflows/check-rust.yml @@ -163,7 +163,7 @@ jobs: # which will nevertheless check the whole workspace run: | set -e # Fail the script if any command fails - cargo check 2>&1 | tee build_output.log + cargo check | tee build_output.log warnings=$(grep "warning: " build_output.log || true) if [ -n "$warnings" ]; then echo "The following custom lints have failed ❌:"