Skip to main content

input

Function input 

Source
pub fn input(name: &str) -> String
Expand description

Read an optional input, trimmed. Returns "" when unset.

An action input foo-bar arrives as the env var INPUT_FOO-BAR (uppercased, spaces → _, hyphens kept).

§Examples

// No `INPUT_NOPE` is set, so this is the empty string, not an error.
assert_eq!(actions_rs::input::input("nope"), "");