ci: don't print 'Checking PACKAGE_NAME...' when do cargo sorting check (#30361)

This commit is contained in:
Yihau Chen 2023-02-17 13:21:11 +08:00 committed by GitHub
parent 50f553e245
commit 92b366cdd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -81,7 +81,13 @@ nightly_clippy_allows=()
--deny=clippy::integer_arithmetic \
"${nightly_clippy_allows[@]}"
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" sort --workspace --check
if [[ -n $CI ]]; then
# exclude from printing "Checking xxx ..."
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" sort --workspace --check > /dev/null
else
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" sort --workspace --check
fi
_ scripts/cargo-for-all-lock-files.sh -- "+${rust_nightly}" fmt --all -- --check
_ ci/do-audit.sh