Skip to content

Commit

Permalink
dasda
Browse files Browse the repository at this point in the history
  • Loading branch information
asielcabrera committed May 17, 2023
1 parent 527069e commit dcbfef2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public struct Core {
let defaultValue = options.defaultValue

if let value = ProcessInfo.processInfo.environment[inputKey], !value.isEmpty {
print(value)
return value
}

Expand All @@ -15,7 +16,7 @@ public struct Core {
if options.required {
fatalError("Input '\(name)' is required but not provided.")
}

print(value)
return nil
}

Expand Down Expand Up @@ -58,4 +59,4 @@ public struct Core {
}

var input = Core.getInput(name: "myInput")
print(input ?? "test fallado")
print(input)

0 comments on commit dcbfef2

Please sign in to comment.