From 5e463571049defe0cd48e8a5bde70b4055cfaf53 Mon Sep 17 00:00:00 2001 From: EUForest Date: Mon, 24 Nov 2025 18:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 startsWith 函数在 if 条件中的使用 - 使用正确的 github.ref_type 判断标签推送 --- .github/workflows/deploy-linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-linux.yml b/.github/workflows/deploy-linux.yml index da93e75..f11e368 100644 --- a/.github/workflows/deploy-linux.yml +++ b/.github/workflows/deploy-linux.yml @@ -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: |