update info

This commit is contained in:
zhangyuheng 2024-04-28 17:13:15 +08:00
parent f54630f582
commit 3fc21b55ec

View File

@ -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)