mirror of
https://gitea.com/actions/release-action.git
synced 2024-11-22 10:05:39 +01:00
Add release body
This commit is contained in:
parent
1c6656df35
commit
40f581c7a6
@ -7,6 +7,9 @@ inputs:
|
|||||||
title:
|
title:
|
||||||
description: 'The release title'
|
description: 'The release title'
|
||||||
required: false
|
required: false
|
||||||
|
body:
|
||||||
|
description: 'The release body'
|
||||||
|
required: false
|
||||||
pre_release:
|
pre_release:
|
||||||
description: "Whether it's a pre release"
|
description: "Whether it's a pre release"
|
||||||
required: false
|
required: false
|
||||||
|
3
main.go
3
main.go
@ -25,6 +25,7 @@ func main() {
|
|||||||
|
|
||||||
files := gha.GetInput("files")
|
files := gha.GetInput("files")
|
||||||
title := gha.GetInput("title")
|
title := gha.GetInput("title")
|
||||||
|
body := gha.GetInput("body")
|
||||||
apiKey := gha.GetInput("api_key")
|
apiKey := gha.GetInput("api_key")
|
||||||
preRelease, _ := strconv.ParseBool(gha.GetInput("pre_release"))
|
preRelease, _ := strconv.ParseBool(gha.GetInput("pre_release"))
|
||||||
draft, _ := strconv.ParseBool(gha.GetInput("draft"))
|
draft, _ := strconv.ParseBool(gha.GetInput("draft"))
|
||||||
@ -58,7 +59,7 @@ func main() {
|
|||||||
IsPrerelease: preRelease,
|
IsPrerelease: preRelease,
|
||||||
Title: title,
|
Title: title,
|
||||||
Target: ctx.SHA,
|
Target: ctx.SHA,
|
||||||
// Note: rc.Note,
|
Note: body,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
gha.Fatalf("failed to create release: %v", err)
|
gha.Fatalf("failed to create release: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user