From 5c11a9309d5f8e858cde7fad3457604d536b0fff Mon Sep 17 00:00:00 2001 From: Static Date: Thu, 6 Aug 2026 17:48:07 -0400 Subject: [PATCH] ci: give the release upload a repository to talk to The release job downloads the installer artifact and never checks the repository out, so gh had no git remote to infer the target from. Every gate passed, the validated installer built, and the upload died on "failed to run git: fatal: not a git repository". v2.0.1 published without its installer until it was attached by hand. Co-Authored-By: Claude Opus 5 --- .github/workflows/build-windows-installer.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build-windows-installer.yml b/.github/workflows/build-windows-installer.yml index 2f71cde..8a8a731 100644 --- a/.github/workflows/build-windows-installer.yml +++ b/.github/workflows/build-windows-installer.yml @@ -283,6 +283,11 @@ jobs: shell: pwsh env: GH_TOKEN: ${{ github.token }} + # This job never checks the repository out, it only downloads the + # installer artifact. Without GH_REPO the gh CLI tries to infer the + # repository from a git remote, finds no working tree, and fails with + # "not a git repository" after every other gate has already passed. + GH_REPO: ${{ github.repository }} run: | $installer = Get-ChildItem "${{ runner.temp }}\humwatch-release" -Filter "HumWatch-Setup-v*.exe" | Select-Object -First 1 if (-not $installer) { throw "Validated HumWatch installer artifact is missing" }