From 0cab43ed898c0d080e946837894d676394805eb8 Mon Sep 17 00:00:00 2001 From: Paul Nothaft Date: Thu, 2 Jul 2026 15:20:07 +0200 Subject: [PATCH] fix(ci): set GH_REPO in release-please auto-merge step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The auto-merge step runs in a job with no actions/checkout, so gh could not infer the repository from a git remote and failed with 'not a git repository' (#719 follow-up). Set GH_REPO=${{ github.repository }} so gh pr list/review/ merge work without a checkout — same fix as the whatsnew workflow (2a5f0a8). Confirmed working otherwise: with RELEASE_PLEASE_TOKEN set, release PR #721 is now PAT-authored and its required checks run automatically (no manual approval). --- .github/workflows/release-please-beta.yml | 3 +++ .github/workflows/release-please.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/release-please-beta.yml b/.github/workflows/release-please-beta.yml index 9fc2d7d8..9e1187da 100644 --- a/.github/workflows/release-please-beta.yml +++ b/.github/workflows/release-please-beta.yml @@ -41,6 +41,9 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_PAT: ${{ secrets.RELEASE_PLEASE_TOKEN }} + # This job has no checkout, so gh can't infer the repo from a git + # remote — set it explicitly (same pattern as whatsnew, 2a5f0a8). + GH_REPO: ${{ github.repository }} run: | if [ -z "$RELEASE_PAT" ]; then echo "RELEASE_PLEASE_TOKEN not set — skipping auto-merge (manual review still required)." diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index bf31c797..eb33b723 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -34,6 +34,9 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_PAT: ${{ secrets.RELEASE_PLEASE_TOKEN }} + # No checkout in this job — set the repo explicitly so gh works + # without a git remote (same pattern as whatsnew, 2a5f0a8). + GH_REPO: ${{ github.repository }} run: | if [ -z "$RELEASE_PAT" ]; then echo "RELEASE_PLEASE_TOKEN not set — skipping auto-merge (manual review still required)."