修复工作流条件判断
- 移除 startsWith 函数在 if 条件中的使用 - 使用正确的 github.ref_type 判断标签推送
This commit is contained in:
parent
35f60df62e
commit
5e46357104
2
.github/workflows/deploy-linux.yml
vendored
2
.github/workflows/deploy-linux.yml
vendored
@ -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: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user