ci: set GH_REPO for release-notes#2349
Conversation
Run 25871339509 (Release: Build Artifacts on tag v1.5.2) failed at the 'Generate combined release notes' step: ##[error]Failed to fetch release body for v1.5.2: failed to run git: fatal: not a git repository (or any of the parent directories): .git The job downloads artifacts but never runs actions/checkout, so gh release view falls back to 'git remote' to infer the repo and dies. The 'release not found' fallback grep doesn't match this error string, so the step exits 1 instead of treating the absent release as a clean empty-body case. Set GH_REPO in the step env so gh queries the API directly without the git fallback. Single-line, scoped to the broken step.
📝 WalkthroughWalkthroughThe pull request adds explicit repository context to the GitHub Actions release workflow. The ChangesRelease Workflow Repository Context
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Run 25871339509 (Release: Build Artifacts on tag
v1.5.2) failed at the Generate combined release notes step:The
releasejob downloads artifacts but never runsactions/checkout, sogh release viewfalls back togit remoteto infer the repo and dies. The existingrelease not foundfallback grep doesn't match this error string, so the step exits 1 instead of treating an absent release as a clean empty-body case.Fix: set
GH_REPOin the step env soghqueries the API directly without the git fallback. Single-line, scoped to the broken step. No behavior change for the happy path.Builds for
v1.5.2themselves succeeded (Flatrim, vs2026, shader unit tests, VR all green). The draft release exists and is sitting empty of artifacts — once this lands, re-dispatching Build Artifacts will finalize it. (Note: the workflow file at the dispatched ref is what executes, so re-dispatching on tagv1.5.2won't pick up this fix; for v1.5.2 specifically, manual artifact upload to the draft is the unblock. This PR fixes the path for v1.5.3+.)Summary by CodeRabbit