修复工作流条件判断

- 移除 startsWith 函数在 if 条件中的使用
- 使用正确的 github.ref_type 判断标签推送
This commit is contained in:
EUForest 2025-11-24 18:43:25 +08:00
parent 35f60df62e
commit 5e46357104

View File

@ -93,7 +93,7 @@ jobs:
retention-days: 30
- name: Create and Upload to GitHub Release
if: github.event_name == 'release' || github.event.inputs.create_release == 'true' || startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release' || github.event.inputs.create_release == 'true' || (github.event_name == 'push' && github.ref_type == 'tag')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |