From 305139c97655a929a1096b7104c3e7a82a6ea3b1 Mon Sep 17 00:00:00 2001 From: sinspired Date: Sat, 16 Nov 2024 18:01:03 +0800 Subject: [PATCH] =?UTF-8?q?Feat(UI):=20=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=99=BB=E5=BD=95=E7=95=8C=E9=9D=A2=E3=80=81=E6=96=B0?= =?UTF-8?q?=E5=A2=9E:=20=E5=AE=9E=E7=8E=B0=E7=94=A8=E6=88=B7=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create_release.yml | 5 ++++- .goreleaser.yaml | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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