Skip to content

Commit 9031c0b

Browse files
committed
Align with future envvar for job id
See actions/runner#4053.
1 parent b5b1c3c commit 9031c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dotnet-trx/TrxCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ static void GitHubReport(TrxSettings settings, Summary summary, StringBuilder de
318318

319319
// Some day, it might just show-up and we'd be forwards compatible.
320320
// See https://github.com/orgs/community/discussions/129314 and https://github.com/actions/runner/issues/324
321-
var jobId = Environment.GetEnvironmentVariable("GITHUB_JOB_ID");
321+
// Pending PR that introduces this envvar: https://github.com/actions/runner/pull/4053
322+
var jobId = Environment.GetEnvironmentVariable("JOB_CHECK_RUN_ID");
322323

323324
// Provide a mechanism that would work on matrix in the meantime
324325
if (Environment.GetEnvironmentVariable("GH_JOB_NAME") is { Length: > 0 } ghJobName)

0 commit comments

Comments
 (0)