From 7cf4c4cf60496b7bfafea4c8cccead5acd3990b1 Mon Sep 17 00:00:00 2001 From: Josh Flayhart Date: Tue, 9 Jun 2026 23:06:18 -0500 Subject: [PATCH] ci: set repo context for the release PR merge The Release Please workflow never checks out the repo, so gh pr merge fails with 'not a git repository'. Set GH_REPO so gh targets the repo via the API. --- .github/workflows/release-please.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a2b16de..75699a9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -29,6 +29,9 @@ jobs: if: ${{ steps.release.outputs.pr }} env: GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} + # This workflow never checks out the repo (release-please works via + # the API), so gh has no git context — point it at the repo explicitly. + GH_REPO: ${{ github.repository }} # Pass the raw output through and parse it in the shell. Do NOT call # fromJSON() here: on runs where release-please cuts the release there # is no open PR, `pr` is empty, and fromJSON('') fails the whole