From 40f581c7a6ca596fe51301d77f9ffb014ddec2ba Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 7 Jul 2023 10:36:39 +0800 Subject: [PATCH] Add release body --- action.yml | 3 +++ main.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e2edd01..336e73f 100644 --- a/action.yml +++ b/action.yml @@ -7,6 +7,9 @@ inputs: title: description: 'The release title' required: false + body: + description: 'The release body' + required: false pre_release: description: "Whether it's a pre release" required: false diff --git a/main.go b/main.go index 93d3370..e2acaaa 100644 --- a/main.go +++ b/main.go @@ -25,6 +25,7 @@ func main() { files := gha.GetInput("files") title := gha.GetInput("title") + body := gha.GetInput("body") apiKey := gha.GetInput("api_key") preRelease, _ := strconv.ParseBool(gha.GetInput("pre_release")) draft, _ := strconv.ParseBool(gha.GetInput("draft")) @@ -58,7 +59,7 @@ func main() { IsPrerelease: preRelease, Title: title, Target: ctx.SHA, - // Note: rc.Note, + Note: body, }) if err != nil { gha.Fatalf("failed to create release: %v", err)