Don't double-print status messages in GHA
Before: ``` Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Downloading crates ... ``` After: ``` Building stage0 tool jsondocck (x86_64-unknown-linux-gnu) Downloading crates ... ```
This commit is contained in:
parent
dcf3571c51
commit
af4e6c1937
@ -1069,7 +1069,6 @@ fn msg_sysroot_tool(
|
||||
}
|
||||
|
||||
fn group(&self, msg: &str) -> Option<gha::Group> {
|
||||
self.info(&msg);
|
||||
match self.config.dry_run {
|
||||
DryRun::SelfCheck => None,
|
||||
DryRun::Disabled | DryRun::UserSelected => Some(gha::group(&msg)),
|
||||
|
@ -46,6 +46,8 @@ pub mod gha {
|
||||
pub fn group(name: impl std::fmt::Display) -> Group {
|
||||
if std::env::var_os("GITHUB_ACTIONS").is_some() {
|
||||
eprintln!("::group::{name}");
|
||||
} else {
|
||||
eprintln!("{name}")
|
||||
}
|
||||
Group(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user