修复 bash 脚本语法错误
- 移除 startsWith() 函数在 bash 中的使用 - 使用 github.ref_type 检测标签推送
This commit is contained in:
parent
adc4a4ff2c
commit
b4893b7acc
2
.github/workflows/deploy-linux.yml
vendored
2
.github/workflows/deploy-linux.yml
vendored
@ -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 }}" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user