From 7d09d8f90189701740dfd0b43abdb05af776f64f Mon Sep 17 00:00:00 2001 From: timzhong2000 Date: Sat, 22 Aug 2026 21:48:31 +0800 Subject: [PATCH] Fix release commands outside checkout --- .github/workflows/binary-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/binary-release.yml b/.github/workflows/binary-release.yml index 16c051a..783afc6 100644 --- a/.github/workflows/binary-release.yml +++ b/.github/workflows/binary-release.yml @@ -100,10 +100,13 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then - gh release upload "$GITHUB_REF_NAME" dist/* --clobber + if gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then + gh release upload "$GITHUB_REF_NAME" dist/* \ + --repo "$GITHUB_REPOSITORY" \ + --clobber else gh release create "$GITHUB_REF_NAME" dist/* \ + --repo "$GITHUB_REPOSITORY" \ --verify-tag \ --generate-notes \ --title "$GITHUB_REF_NAME"