Skip to content
/ gha Public

Utilities for developing custom GitHub Actions in Rust.

License

Notifications You must be signed in to change notification settings

ecliptical/gha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

Project Template

To get started with GitHub Actions in Rust, use the following project template:

cargo generate https://github.com/ecliptical/rust-gha-template

About

Utilities for developing custom GitHub Actions in Rust.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages