From 1283a4c43fd5064e6f1c04a410e50533fe5bc392 Mon Sep 17 00:00:00 2001 From: Ayinkx <199975741+Ayinkx@users.noreply.github.com> Date: Wed, 28 Oct 2026 14:44:57 +0100 Subject: [PATCH] fix(release): pass --repo to gh release commands The create-release job has no checkout, so gh could not infer the repository from the working directory. Pass --repo explicitly for create, view, and upload. --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe83397..773e297 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,10 +22,10 @@ jobs: TAG: ${{ github.ref_name }} run: | set -euo pipefail - if gh release view "$TAG" >/dev/null 2>&1; then + if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then echo "Release $TAG already exists." else - gh release create "$TAG" --title "$TAG" --generate-notes + gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --title "$TAG" --generate-notes fi build: @@ -93,7 +93,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} TAG: ${{ github.ref_name }} - run: gh release upload "$TAG" dist/*.tar.gz dist/*.tar.gz.sha256 --clobber + run: gh release upload "$TAG" --repo "$GITHUB_REPOSITORY" dist/*.tar.gz dist/*.tar.gz.sha256 --clobber - name: Upload archive (Windows) if: matrix.archive == 'zip' @@ -101,4 +101,4 @@ jobs: env: GH_TOKEN: ${{ github.token }} TAG: ${{ github.ref_name }} - run: gh release upload $env:TAG dist/*.zip dist/*.zip.sha256 --clobber + run: gh release upload $env:TAG --repo $env:GITHUB_REPOSITORY dist/*.zip dist/*.zip.sha256 --clobber