Skip to content

Commit

Permalink
fix pkgx exec
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed May 2, 2024
1 parent 8e3e191 commit d579a4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "github"
version = "0.6.0"
version = "0.6.1"

[lib]
crate-type = ["cdylib"]
Expand Down
11 changes: 9 additions & 2 deletions plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ pub fn release_upload(args: String) -> FnResult<String> {
let stdout = dag()
.pipeline("release_upload")?
.pkgx()?
.with_packages(vec!["gh", "git"])?
.with_exec(vec!["gh", "release", "upload", &args])?
.with_exec(vec![
"pkgx",
"+gh",
"+git-scm.org",
"gh",
"release",
"upload",
&args,
])?
.stdout()?;
Ok(stdout)
}

0 comments on commit d579a4c

Please sign in to comment.