Expand description
Typed access to action inputs.
An action input named foo-bar is passed to the process as the environment variable INPUT_FOO-BAR:
the rule is INPUT_ + uppercased name with spaces replaced by underscores (hyphens are kept).
This matches @actions/core’s getInput.
The name → key transform and the strict boolean parser are pure functions so they are
unit-tested without mutating the global environment.
Structs§
- Input
Options - Options controlling how an input is read.
Functions§
- bool_
input - Read a boolean input using the strict YAML 1.2 core schema
(
true|True|TRUE|false|False|FALSE). - input
- Read an optional input, trimmed. Returns
""when unset. - input_
as - Read an input and parse it via
FromStr. - input_
env_ key - Compute the environment-variable key for an input name.
- input_
required - Read a required input, trimmed.
- input_
with - Read an input with explicit
InputOptions. - mask_
input - Mask the (untrimmed) raw value of input
namein subsequent logs. - multiline_
input - Split a multiline input on
\n, dropping empty lines. Each retained line is trimmed. - multiline_
input_ with - Read a multiline input with explicit
InputOptions. Empty raw lines are dropped before optional trimming, matching@actions/core.