2 releases

0.0.2 Apr 1, 2020
0.0.1 Apr 1, 2020

#11 in #actions

Download history 12/week @ 2024-02-16 31/week @ 2024-02-23 10/week @ 2024-03-01 5/week @ 2024-03-08 2/week @ 2024-03-15

53 downloads per month
Used in actions-toolkit

MIT license

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

~265–425KB