From 11cc5edf0f6bad47b0508e9c778b127e781bd68d Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Thu, 13 Aug 2026 09:45:20 +1000 Subject: [PATCH] fix(ci): pass --repo to gh calls in release-please's PyPI-publish trigger The "Trigger PyPI publish" step has no actions/checkout, so gh can't infer the target repo from a git remote and fails with "not a git repository". Pass --repo explicitly via GH_REPO instead. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/release-please.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f00a76cb..5b8ff6a6 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -34,7 +34,8 @@ jobs: - name: Trigger PyPI publish if: ${{ steps.release.outputs.releases_created }} run: | - tag=$(gh release list --limit 1 --json tagName -q '.[0].tagName') - gh workflow run release.yml --ref "$tag" + tag=$(gh release list --repo "$GH_REPO" --limit 1 --json tagName -q '.[0].tagName') + gh workflow run release.yml --repo "$GH_REPO" --ref "$tag" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }}