Crates.io | gha |
lib.rs | gha |
version | 0.1.7 |
source | src |
created_at | 2024-04-18 04:30:32.641332 |
updated_at | 2024-09-02 02:58:44.621848 |
description | Utilities for developing custom GitHub Actions. |
homepage | |
repository | https://github.com/ecliptical/gha |
max_upload_size | |
id | 1212110 |
size | 43,334 |
This crate provides basic utilities that help you develop custom GitHub Actions in Rust.
use gha::github_workspace;
use std::fs::File;
let workspace = github_workspace();
let my_file = File::open(workspace.append("my_file.yaml"))?
Easily generate workflow commands; e.g.,
use gha::{debug, error};
debug!("current dir: {:#?}", std::env::current_dir());
error!(title = "Validator", line = 42, "Invalid value");
To get started with GitHub Actions in Rust, use the following project template:
cargo generate https://github.com/ecliptical/rust-gha-template