mirror of
https://gitea.com/actions/release-action.git
synced 2024-11-21 21:51:07 -05:00
Merge pull request 'Add release body' (#7) from lunny/support_body into main
Reviewed-on: https://gitea.com/actions/release-action/pulls/7
This commit is contained in:
commit
23a38ad334
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
3
main.go
3
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)
|
||||
|
|
Loading…
Reference in a new issue