diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 9589e42..cb1e99a 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=true" >> $GITHUB_ENV + run: echo "USE_EMOJI_TITLE="测试标题" >> $GITHUB_ENV - name: Debug Environment Variables run: echo "USE_EMOJI=$USE_EMOJI_TITLE" diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 789ccda..6e8f32e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -70,11 +70,8 @@ changelog: # - title: "✨ New Features (新功能)" - title: | - {{ if .Env.USE_EMOJI_TITLE }} - ✨ New Features (新功能) - {{ else }} - New Features - {{ end }} + {{ .Env.USE_EMOJI_TITLE }} + regexp: '^(?i).*?(feat|功能|新增|feature|新特性)(\(.+\))??!?[-:\s].+$' order: 100