Skip to content

Commit

Permalink
Add runtime information to GH message
Browse files Browse the repository at this point in the history
This allows to distinguish otherwise apparently duplicated messages when running tests across multiple OSes
  • Loading branch information
kzu committed Jul 7, 2024
1 parent fe3e151 commit d5c7bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dotnet-trx/TrxCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
Expand Down Expand Up @@ -250,7 +251,7 @@ static void GitHubReport(Summary summary, StringBuilder details)
}

sb.AppendLine(
$"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped)");
$"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped) via {RuntimeInformation.FrameworkDescription} on {RuntimeInformation.OSDescription}");

if (TryExecute("gh", $"pr comment {pr} --body-file -", sb.ToString(), out var link))
WriteLine($"::notice title=Added summary as [pull-request comment]({link})");
Expand Down

0 comments on commit d5c7bdb

Please sign in to comment.