Skip to content

Commit 25146db

Browse files
print env fix
1 parent 178b83d commit 25146db

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

roles/tests-unit/files/FWO.Test/HtmlToPdfTest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ public async Task GeneratePdf()
1919
{
2020
var isGitHubActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true";
2121

22-
if(Environment.GetEnvironmentVariable("GITHUB_ACTIONS") is null || string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS")))
22+
var environmentVariables = Environment.GetEnvironmentVariables();
23+
24+
foreach (var key in environmentVariables.Keys)
25+
{
26+
Log.WriteError("Test Log", $"{key} = {environmentVariables[key]}");
27+
}
28+
29+
if (Environment.GetEnvironmentVariable("GITHUB_ACTIONS") is null || string.IsNullOrEmpty(Environment.GetEnvironmentVariable("GITHUB_ACTIONS")))
2330
{
2431
Log.WriteError("Test Log", "GITHUB_ACTIONS is null or empty!");
2532
}

0 commit comments

Comments
 (0)