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