[CI] CI: set release publish repository context - #5204
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
There was a problem hiding this comment.
🟢 Approval recommended
The change is minimal, correctly scoped to the failing job, and aligns with GitHub CLI’s expected environment-based repository context.
Pull request overview
This PR fixes the release publish job in .github/workflows/release-automation.yaml by ensuring the GitHub CLI has explicit repository context even when the job does not check out the repo, preventing failures like fatal: not a git repository during gh release view.
Changes:
- Set
GH_REPOto${{ github.repository }}in thepublishjob environment sogh release *commands can resolve the target repository without relying on a local.gitcheckout.
File summaries
| File | Description |
|---|---|
| .github/workflows/release-automation.yaml | Adds GH_REPO to the publish job env so gh release view/edit/create/upload works without a checkout. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Summary
GH_REPOin the release automation publish job sogh releasecommands have repository context even without a checkout.gh release viewfailed withfatal: not a git repository.Test plan