Skip to content

Fix release workflow: checkout repo before creating draft release - #39

Merged
ains merged 1 commit into
mainfrom
investigate-build-failure
Jul 22, 2026
Merged

Fix release workflow: checkout repo before creating draft release#39
ains merged 1 commit into
mainfrom
investigate-build-failure

Conversation

@ains

@ains ains commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • The prepare-release job in release.yml ran gh release create/gh release view without checking out the repo first, so gh failed with fatal: not a git repository when trying to infer the target repo.
  • This caused the whole v0.2.2 release run to fail immediately, skipping the matrix Build & publish jobs before they ever expanded (https://github.com/ains/nota/actions/runs/29889556736/job/88827083604).
  • Adds actions/checkout@v7 as the first step of prepare-release, matching what the downstream matrix jobs already do.

Test plan

  • Push a new version tag (or re-run on v0.2.2) and confirm prepare-release succeeds and the macOS/Windows matrix jobs run.

gh release create/view needs a git repo to infer the target repository;
without a checkout step the prepare-release job failed with
"fatal: not a git repository", skipping the whole matrix build.
@ains
ains merged commit 1e74e51 into main Jul 22, 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