From ffe7d07b5fcf173650cd9c35a4f2bcfcf8dd9e4c Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Mon, 27 May 2024 12:48:51 +0200 Subject: [PATCH] updated `actions-github` with `set_output` method --- Cargo.toml | 2 +- src/main.rs | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8cf0428..3423d60 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs index 6771ed2..ce94a6f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; @@ -35,9 +34,9 @@ async fn main() { .iter() .map(|member| member.username.clone()) .collect::>() - .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)]