Skip to content

Commit 6ccc6b3

Browse files
eliasdoehneclaude
andcommitted
Fix release job: give gh the repo via GH_REPO
The release job has no repo checkout, so `gh release create` failed with "fatal: not a git repository" when resolving the target repo. Setting GH_REPO from github.repository lets gh target the repo without a checkout. The v8.0.0 builds succeeded but this step failed; the draft release was created manually as a workaround. This makes future tag releases automatic. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R1UgwVVGtcUmjzSL5yoK4w
1 parent 944bf63 commit 6ccc6b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ jobs:
8888
- name: Create Release Draft
8989
env:
9090
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
# gh needs to know the target repo; the release job has no checkout,
92+
# so without this gh fails with "fatal: not a git repository".
93+
GH_REPO: ${{ github.repository }}
9194
run: |
9295
gh release create ${{ github.ref_name }} release_files/* --draft --generate-notes
9396

0 commit comments

Comments
 (0)