Skip to content

Fix release workflow: gh release create needs --repo - #26

Merged
TheValiantOne merged 1 commit into
mainfrom
fix/release-workflow-missing-repo-flag
Aug 11, 2026
Merged

Fix release workflow: gh release create needs --repo#26
TheValiantOne merged 1 commit into
mainfrom
fix/release-workflow-missing-repo-flag

Conversation

@TheValiantOne

@TheValiantOne TheValiantOne commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Summary

The v0.6.2 tag push (this workflow's first real run ever, no prior v* tag had ever existed) succeeded through every job - version check, build+test, all three publish legs, and packaging - and failed only on the final gh release create call:

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

package-release runs on a bare ubuntu-latest runner that only downloads build artifacts from earlier jobs - it never checks out the repo. Without --repo, gh tries to resolve the target repository from a local git remote, which doesn't exist in that job. Same class of mistake this repo's own CLAUDE.md already flags for gh pr create run without --repo/--base.

Fix

Pass --repo "$GITHUB_REPOSITORY" explicitly (a built-in Actions env var, owner/repo) rather than adding an actions/checkout step just to give gh something to infer from.

Test plan

  • Confirmed the failure is isolated to this one step - version/build/test/publish/package all passed on the real v0.6.2 run (run 31451068058).
  • Once merged, I'll move the v0.6.2 tag to the new main tip and re-push to confirm the full workflow succeeds end-to-end and publishes the release.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01GXAuGMLB44T5Zv5o5ZzKah

…that job

The package-release job runs on a bare ubuntu-latest runner and only
downloads build artifacts - it never checks out the repo. Without --repo,
gh release create tries to auto-detect the target repository via a local
git remote lookup, which fails outright with no working directory to look
in. Confirmed by this workflow's first real run (tag v0.6.2): every job
through packaging succeeded, and only this step failed with "fatal: not a
git repository". Pass --repo "\$GITHUB_REPOSITORY" explicitly instead of
adding a checkout step just for this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXAuGMLB44T5Zv5o5ZzKah
@TheValiantOne
TheValiantOne merged commit 8deeb1d into main Aug 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant