Function state

Source
pub fn state<K>(name: K) -> Result<String, VarError>
where K: ToString,
Expand description

Similar to input, but, gets data shared from a wrapper action.

use actions_core as core;

let greeting = core::state("my_greeting")
    .unwrap_or_else(|_| "hello".to_owned());