You've already forked release-action
mirror of
https://gitea.com/actions/release-action.git
synced 2025-12-17 10:48:26 +00:00
Add release body file
This commit is contained in:
8
main.go
8
main.go
@@ -26,6 +26,14 @@ func main() {
|
||||
files := gha.GetInput("files")
|
||||
title := gha.GetInput("title")
|
||||
body := gha.GetInput("body")
|
||||
bodyFile := gha.GetInput("body_file")
|
||||
if body == "" && bodyFile != "" {
|
||||
f, err := os.ReadFile(bodyFile)
|
||||
if err != nil {
|
||||
gha.Fatalf("read body file error: %s", err.Error())
|
||||
}
|
||||
body = string(f)
|
||||
}
|
||||
apiKey := gha.GetInput("api_key")
|
||||
preRelease, _ := strconv.ParseBool(gha.GetInput("pre_release"))
|
||||
draft, _ := strconv.ParseBool(gha.GetInput("draft"))
|
||||
|
||||
Reference in New Issue
Block a user