Skip to content

Commit

Permalink
Fixed env variable target to work with all OS's
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenJDH committed Nov 14, 2024
1 parent 36a8eb6 commit dc2fd76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MavenVersionChecker.Action/Data/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public enum ExitCode
/// <exception cref="ArgumentNullException">When required input is not supplied.</exception>
public static string GetInput(string name, InputOptions? options = default)
{
var input = Environment.GetEnvironmentVariable($"INPUT_{name.Replace(' ', '_').ToUpperInvariant()}",
EnvironmentVariableTarget.Process);
var input = Environment.GetEnvironmentVariable($"INPUT_{name.Replace(' ', '_').ToUpperInvariant()}");

return options switch
{
Expand Down Expand Up @@ -107,7 +106,7 @@ public static async ValueTask SetStepSummaryAsync(string markdown)

private static async ValueTask IssueFileCommand(string commandSuffix, string content)
{
string? filePath = Environment.GetEnvironmentVariable($"GITHUB_{commandSuffix}", EnvironmentVariableTarget.Process);
string? filePath = Environment.GetEnvironmentVariable($"GITHUB_{commandSuffix}");

if (string.IsNullOrWhiteSpace(filePath))
{
Expand Down

0 comments on commit dc2fd76

Please sign in to comment.