fix(ci): pass --repo to gh calls in release-please's PyPI-publish trigger - #73
Merged
Conversation
…gger 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 <noreply@anthropic.com>
petercorke
enabled auto-merge (squash)
August 12, 2026 23:46
Up to standards ✅🟢 Issues
|
Merged
2 tasks
petercorke
added a commit
that referenced
this pull request
Aug 13, 2026
…hy-string bug (#74) steps.release.outputs.releases_created is always the literal string "true" or "false" (release-please-action stringifies a JS boolean via core.setOutput), never unset. Only "" is falsy in an if: expression, so the bare output reference fired the trigger on every push to main, not just when a release was actually created -- confirmed live: it fired after PR #73 merged (a non-release push) and dispatched release.yml against the already-published v2.2.0 tag. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
release-please.ymlhas noactions/checkout, soghcan't infer the target repo from a git remote and fails withfatal: not a git repository.--repoexplicitly (viaGH_REPOenv) to bothgh release listandgh workflow runso the step doesn't depend on git state at all.Seen failing here: https://github.com/petercorke/machinevision-toolbox-python/actions/runs/31649562305
Test plan
release-pleaserun that creates a release should successfully dispatchrelease.ymlagainst the new tag.🤖 Generated with Claude Code