Function get_input

Source
pub fn get_input(name: &str) -> Result<String, ActionsError>
Expand description

Obtain an input from a variable

If the input is not found, an ActionsError is returned

This method was copied from core.ts

use actions_github::logger;
use actions_github::core;

let name = core::get_input("name").unwrap_or_else(|_| {
    logger::warn_log("Input 'name' was not defined", Option::None);
    String::from("")
});