Skip to content

Fix "not a git repository" failure in Create GitHub Release job - #16

Merged
zRenard merged 3 commits into
mainfrom
copilot/fix-create-github-release-job
Sep 4, 2026
Merged

zRenard merged 3 commits into
mainfrom
copilot/fix-create-github-release-job

Conversation

Copilot AI commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

The create-release job failed with fatal: not a git repository (or any of the parent directories): .git, causing gh release create --generate-notes to exit with code 1.

Root cause

  • The job downloaded the build artifact via actions/download-artifact but never checked out the repository.
  • gh release create --generate-notes needs a local git checkout to resolve repo context and generate release notes from commit history.

Fix

  • Added an actions/checkout@v7 step as the first step of the create-release job in .github/workflows/main.yml, matching the version already used elsewhere in the workflow.

Co-authored-by: zRenard <10696792+zRenard@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions job Create GitHub Release Fix "not a git repository" failure in Create GitHub Release job Sep 4, 2026
Copilot AI requested a review from zRenard September 4, 2026 09:56
Comment thread .github/workflows/main.yml
Co-authored-by: zRenard <10696792+zRenard@users.noreply.github.com>
Copilot AI requested a review from zRenard September 4, 2026 12:44
@zRenard
zRenard marked this pull request as ready for review September 4, 2026 13:11
@zRenard
zRenard merged commit 83e0471 into main Sep 4, 2026
2 checks passed
@zRenard
zRenard deleted the copilot/fix-create-github-release-job branch September 4, 2026 13:12
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.

2 participants