From 2c81e214484066d6d7222a09b9e5818485e887cc Mon Sep 17 00:00:00 2001 From: "Guilherme Resende Freitas (guigs)" Date: Mon, 23 Aug 2021 11:47:00 -0300 Subject: [PATCH] adds author field to response I'm using this to send release-notes in slack for our release action, it would be nice to have author data so the message can contain the user ho made the release --- src/get-release.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/get-release.js b/src/get-release.js index 807778b..97424c0 100644 --- a/src/get-release.js +++ b/src/get-release.js @@ -26,7 +26,7 @@ async function run() { // Get the outputs for the created release from the response const { - data: { id: releaseId, html_url: htmlUrl, upload_url: uploadUrl, name: name, body: body, draft: draft, prerelease: prerelease } + data: { id: releaseId, html_url: htmlUrl, upload_url: uploadUrl, name: name, body: body, draft: draft, prerelease: prerelease, author: author } } = getReleaseResponse; console.log(`Got release info: '${releaseId}', '${htmlUrl}', '${uploadUrl}', '${name}', '${draft}', '${prerelease}', '${body}'`); @@ -40,6 +40,7 @@ async function run() { core.setOutput("body", body); core.setOutput("draft", draft); core.setOutput("prerelease", prerelease); + core.setOutput("author", author); } catch (error) { console.log(error); core.setFailed(error.message);