forked from actions/release-action
update info
This commit is contained in:
parent
f54630f582
commit
3fc21b55ec
7
main.go
7
main.go
@ -85,12 +85,13 @@ func main() {
|
||||
}
|
||||
|
||||
if body == "" {
|
||||
body = "## Changes\n" + commitHistory
|
||||
body = "\n## Changes\n" + commitHistory
|
||||
}
|
||||
body += "## Note\n" + note
|
||||
|
||||
fmt.Printf("Creating release for %s/%s with tag %s\n", owner, repo, ctx.RefName)
|
||||
fmt.Printf("Title: %s\n", title)
|
||||
fmt.Printf("Note: %s\n", body+"\n"+note)
|
||||
fmt.Printf("Note: %s\n", body)
|
||||
|
||||
rel, err := createOrGetRelease(ctx, c, owner, repo, gitea.CreateReleaseOption{
|
||||
TagName: ctx.RefName,
|
||||
@ -98,7 +99,7 @@ func main() {
|
||||
IsPrerelease: preRelease,
|
||||
Title: title,
|
||||
Target: ctx.SHA,
|
||||
Note: body + "\n" + note,
|
||||
Note: body,
|
||||
})
|
||||
if err != nil {
|
||||
gha.Fatalf("failed to create release: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user