From a4ac8b64004e17d1cbd8d7141672ee09773da5c6 Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Fri, 9 Aug 2024 07:18:44 -0400 Subject: [PATCH] try echoing the file --- .github/workflows/check-rust.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-rust.yml b/.github/workflows/check-rust.yml index b3e656c33..c724ecd1a 100644 --- a/.github/workflows/check-rust.yml +++ b/.github/workflows/check-rust.yml @@ -163,7 +163,8 @@ jobs: # which will nevertheless check the whole workspace run: | set -o pipefail # Ensure the pipeline fails if any command in the pipeline fails - cargo check 2>&1 | tee build_output.log + cargo check 2>&1 | build_output.log + cat build_output.log if grep -q "^warning:" build_output.log; then echo "Build emitted the following warnings:" grep "^warning:" build_output.log