From 2a20d52d2f0e8c32c9679c4c405454c3b2f27d90 Mon Sep 17 00:00:00 2001 From: Victor Payno Date: Tue, 29 Aug 2023 22:07:57 -0700 Subject: [PATCH] ci(rust): use the short version of show_tool_versions_rust() outside of ci --- .github/citools/includes/wrapper-library | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/citools/includes/wrapper-library b/.github/citools/includes/wrapper-library index 88583ce3..98d02618 100644 --- a/.github/citools/includes/wrapper-library +++ b/.github/citools/includes/wrapper-library @@ -41,27 +41,31 @@ show_tool_versions_rust() { printf "Rust version:\n" printf "\n" rustc --version | paste /dev/null - - printf "\n" # md_code_tag + printf "\n" + + if [[ -z ${GITHUB_ACTIONS} ]]; then + return + fi # md_code_tag text printf "Installed cargo crates:\n" printf "\n" cargo install --list | paste /dev/null - - printf "\n" # md_code_tag + printf "\n" # md_code_tag text rustup --version - printf "\n" # md_code_tag + printf "\n" # md_code_tag text printf "Installed rustup components:\n" printf "\n" rustup component list | grep '(installed)' | paste /dev/null - - printf "\n" # md_code_tag + printf "\n" # md_code_tag text printf "Environment variables:\n" @@ -69,6 +73,6 @@ show_tool_versions_rust() { printf "%s=%s\n" "PATH" "${PATH}" printf "\n" printf "%s=%s\n" "CARGO_REGISTRIES_CRATES_IO_PROTOCOL" "${CARGO_REGISTRIES_CRATES_IO_PROTOCOL}" "RUSTC_WRAPPER" "${RUSTC_WRAPPER}" - printf "\n" # md_code_tag + printf "\n" } # show_tool_versions_rust()