Crates.io | wrkflw-github |
lib.rs | wrkflw-github |
version | 0.7.3 |
created_at | 2025-08-09 12:28:13.446813+00 |
updated_at | 2025-08-28 07:32:50.080638+00 |
description | GitHub API integration for wrkflw workflow execution engine |
homepage | https://github.com/bahdotsh/wrkflw |
repository | https://github.com/bahdotsh/wrkflw |
max_upload_size | |
id | 1787887 |
size | 48,824 |
GitHub integration helpers used by wrkflw
to list/trigger workflows.
.github/workflows
use wrkflw_github::{get_repo_info, trigger_workflow};
# tokio_test::block_on(async {
let info = get_repo_info()?;
println!("{}/{} (default branch: {})", info.owner, info.repo, info.default_branch);
// Requires GITHUB_TOKEN in env
trigger_workflow("ci", Some("main"), None).await?;
# Ok::<_, Box<dyn std::error::Error>>(())
# })?;
Notes: set GITHUB_TOKEN
with the workflow
scope; only public repos are supported out-of-the-box.