fix: use environment variable to pass full tag message to GoReleaser
- Extract complete tag message body in workflow using git format - Pass tag message via TAG_MESSAGE environment variable - Update goreleaser config to use .Env.TAG_MESSAGE instead of .TagBody - Fix release notes being truncated to first paragraph only
This commit is contained in:
@@ -56,14 +56,12 @@ release:
|
||||
name: sub2api
|
||||
draft: false
|
||||
prerelease: auto
|
||||
name_template: "v{{.Version}}"
|
||||
# 完全使用 tag 消息作为 release 内容
|
||||
name_template: "Sub2API {{.Version}}"
|
||||
# 完全使用 tag 消息作为 release 内容(通过环境变量传入)
|
||||
header: |
|
||||
## Sub2API {{.Version}}
|
||||
|
||||
> AI API Gateway Platform - 将 AI 订阅配额分发和管理
|
||||
|
||||
{{ .TagBody }}
|
||||
{{ .Env.TAG_MESSAGE }}
|
||||
|
||||
footer: |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user