Function actions_github::context::get_context

source ยท
pub fn get_context() -> Result<Context, ActionsError>
Expand description

Gets the context object injected by the GitHub action

let data = get_context().unwrap();
println!("Event is {}", data.event_name);