Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

fix: specify repo in release notes workflow#6

Merged
phatpham9 merged 1 commit into
mainfrom
fix/cd-release-notes-gh-repo
Jun 21, 2026
Merged

fix: specify repo in release notes workflow#6
phatpham9 merged 1 commit into
mainfrom
fix/cd-release-notes-gh-repo

Conversation

@phatpham9

Copy link
Copy Markdown
Member

Summary

Fix the CD workflow failure in the update-release-notes job by making all gh release commands target the repository explicitly.

Root cause

The failing run was:

The update-release-notes job does not check out the repository, but it was running gh release view/create/edit without --repo.

In that environment, gh tried to resolve the repository through local git state and failed with:

failed to run git: fatal: not a git repository (or any of the parent directories): .git

What changed

  • set GH_REPO: ${{ github.repository }} in the update-release-notes job steps
  • add --repo "$GH_REPO" to:
    • gh release view
    • gh release create
    • gh release edit
  • update the inline Python helper to pass the repo explicitly when reading the existing release body

Verification

  • validated .github/workflows/cd.yml parses as YAML after the change
  • inspected the diff to confirm the fix is limited to the explicit repo plumbing for gh

@phatpham9 phatpham9 merged commit d3e8d51 into main Jun 21, 2026
1 check passed
@phatpham9 phatpham9 deleted the fix/cd-release-notes-gh-repo branch June 21, 2026 18:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant