Skip to content

Set repository context for GitHub CLI release - #12

Merged
IRainman merged 1 commit into
masterfrom
fix/release-cli-repository-context
Nov 5, 2026
Merged

IRainman merged 1 commit into
masterfrom
fix/release-cli-repository-context

Conversation

@IRainman

@IRainman IRainman commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Problem

The release job downloads and verifies every release artifact successfully, but the final publishing step fails with:

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

This job does not check out the repository. The gh release commands therefore cannot infer the repository from a local Git checkout.

Fix

Set GH_REPO: ${{ github.repository }} for the publishing step. GitHub CLI can then target the repository explicitly without requiring an unnecessary checkout.

The workflow already grants contents: write; no permission changes are needed.

@IRainman
IRainman merged commit 41fa03b into master Nov 5, 2026
5 checks passed
@IRainman
IRainman deleted the fix/release-cli-repository-context branch November 5, 2026 20:58
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