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:
jyn 2023-06-04 22:11:05 -05:00
parent dcf3571c51
commit af4e6c1937
2 changed files with 2 additions and 1 deletions

View File

@ -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)),

View File

@ -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(())
}