diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index fdd5e49..9589e42 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -32,7 +32,10 @@ jobs: # 添加控制emoji标题的变量 - name: Set Changelog Emoji Option run: echo "USE_EMOJI_TITLE=true" >> $GITHUB_ENV - + + - name: Debug Environment Variables + run: echo "USE_EMOJI=$USE_EMOJI_TITLE" + # More assembly might be required: Docker logins, GPG, etc. # It all depends on your needs. - name: Run GoReleaser diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 485fff3..6b778a4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -68,8 +68,8 @@ changelog: # feat(UI): 新增用户登录界面、新增: 实现用户认证功能。 # - title: "New Features" # “新功能” # - title: "✨ New Features (新功能)" - - - title: "{{ if .Env.USE_EMOJI }}✨ New Features (新功能){{ else }}New Features{{ end }}" + + - title: "{{ if .Env.USE_EMOJI_TITLE }}✨ New Features (新功能){{ else }}New Features{{ end }}" regexp: '^(?i).*?(feat|功能|新增|feature|新特性)(\(.+\))??!?[-:\s].+$' order: 100 @@ -77,7 +77,7 @@ changelog: # fix: 修复UI组件加载延迟问题 # - title: "Bug fixes" # “Bug 修复” # - title: "🐛 Bug Fixes (修复问题)" - - title: "{{ if .Env.USE_EMOJI }}🐛 Bug Fixes (修复问题){{ else }}Bug fixes{{ end }}" + - title: "{{ if .Env.USE_EMOJI_TITLE }}🐛 Bug Fixes (修复问题){{ else }}Bug fixes{{ end }}" regexp: '^(?i).*?(fix|修复|bug|错误|bugfix)(\(.+\))??!?[-:\s].+$' order: 200