2 releases
0.0.2 | Apr 1, 2020 |
---|---|
0.0.1 | Apr 1, 2020 |
#57 in #github-actions
Used in actions-toolkit
16KB
417 lines
actions-core
Core functions for inputs, outputs, logging, setting environment variables, and masking secrets.
Example
use std::time::Duration;
use actions_core as core;
use anyhow::{Context, Result};
pub fn main() {
let ms = core::input("milliseconds")
.expect("milliseconds input required")?
.parse()
.expect("invalid milliseconds")?;
let ms = Duration::from_millis(ms);
std::thread::sleep(ms);
core::set_output("greeting", "Hello, World!");
}
Dependencies
~285–450KB