修复 bash 脚本语法错误

- 移除 startsWith() 函数在 bash 中的使用
- 使用 github.ref_type 检测标签推送
This commit is contained in:
EUForest 2025-11-24 18:25:35 +08:00
parent adc4a4ff2c
commit b4893b7acc

View File

@ -104,7 +104,7 @@ jobs:
--title "PPanel Server ${{ env.VERSION }}" \
--notes "Release ${{ env.VERSION }}" \
--latest
elif [ "${{ github.event_name }}" = "push" ] && startsWith(github.ref, 'refs/tags/'); then
elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref_type }}" = "tag" ]; then
echo "Creating release for tag ${{ env.VERSION }}"
gh release create ${{ env.VERSION }} \
--title "PPanel Server ${{ env.VERSION }}" \