diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index ba6598c..9589e42 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -31,7 +31,7 @@ jobs: # 添加控制emoji标题的变量 - name: Set Changelog Emoji Option - run: echo "USE_EMOJI_TITLE="emoji测试"" >> $GITHUB_ENV + run: echo "USE_EMOJI_TITLE=true" >> $GITHUB_ENV - name: Debug Environment Variables run: echo "USE_EMOJI=$USE_EMOJI_TITLE" diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d4c897a..789ccda 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -69,7 +69,13 @@ changelog: # - title: "New Features" # “新功能” # - title: "✨ New Features (新功能)" - - title: {{ .Env.USE_EMOJI_TITLE }} + - title: | + {{ if .Env.USE_EMOJI_TITLE }} + ✨ New Features (新功能) + {{ else }} + New Features + {{ end }} + regexp: '^(?i).*?(feat|功能|新增|feature|新特性)(\(.+\))??!?[-:\s].+$' order: 100