Skip to content

Commit

Permalink
updated actions-github with set_output method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed May 27, 2024
1 parent e9276b0 commit ffe7d07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
actions-core = "0.0.2"
actions-github = "0.0.3"
actions-github = "0.0.4"
anyhow = "1.0.86"
octocrab = "0.38.0"
serde = "1.0.202"
Expand Down
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use actions_core::set_output;
use actions_github::context::get_context;
use actions_github::core::get_input;
use actions_github::core::{get_input, set_output};
use anyhow::Result;
use octocrab::Octocrab;

Expand Down Expand Up @@ -35,9 +34,9 @@ async fn main() {
.iter()
.map(|member| member.username.clone())
.collect::<Vec<String>>()
.join(","),
.join(",").as_str(),
);
set_output("data", serde_json::to_string(&team).unwrap())
set_output("data", serde_json::to_string(&team).unwrap().as_str())?
}

#[derive(Debug, Clone, serde_derive::Serialize)]
Expand Down

0 comments on commit ffe7d07

Please sign in to comment.