From b4893b7acc2e32587d0e6e26c82973187b6979e6 Mon Sep 17 00:00:00 2001 From: EUForest Date: Mon, 24 Nov 2025 18:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20bash=20=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 startsWith() 函数在 bash 中的使用 - 使用 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 9af4378..da93e75 100644 --- a/.github/workflows/deploy-linux.yml +++ b/.github/workflows/deploy-linux.yml @@ -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 }}" \