From 7e58d9a23da0b13a675bd31ef8375a229a047ce9 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 31 Oct 2025 23:42:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E9=94=99=E8=AF=AF=E5=88=99?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 029787b..d59ede9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -251,17 +251,13 @@ jobs: ls -lh .build/ du -sh .build/* - - name: Get or create release + - name: Get release id: get_release shell: bash run: | LATEST_RELEASE=$(gh release list --limit 1 --json tagName --jq '.[0].tagName') if [ -z "$LATEST_RELEASE" ] || [ "$LATEST_RELEASE" == "null" ]; then - echo "No existing release found, creating a new one" - gh release create "${{ needs.prepare.outputs.version }}" \ - --title "Release ${{ needs.prepare.outputs.version }}" \ - --notes "Automated build from ${{ github.sha }}" - RELEASE_TAG="${{ needs.prepare.outputs.version }}" + exit 1 else RELEASE_TAG="$LATEST_RELEASE" echo "Found existing release: $RELEASE_TAG"