4 releases

0.1.3 Apr 21, 2024
0.1.2 Apr 20, 2024
0.1.1 Apr 18, 2024
0.1.0 Apr 18, 2024

#656 in Development tools

Download history 357/week @ 2024-04-15 58/week @ 2024-04-22

415 downloads per month

MIT license

37KB
856 lines

Utilities for implementing GitHub Actions

This crate provides basic utilities that help you develop custom GitHub Actions in Rust.

Environment Variables

use gha::github_workspace;
use std::fs::File;

let workspace = github_workspace();
let my_file = File::open(workspace.append("my_file.yaml"))?

Messages

Easily generate workflow commands; e.g.,

use gha::{debug, error};

debug!("current dir: {:#?}", std::env::current_dir());
error!(title = "Validator", line = 42, "Invalid value");

lib.rs:

Minimalist utilities for writing custom GitHub Actions.

No runtime deps