Skip to content

fix(ci): checkout repo in release publish job - #21

Merged
johnnyhuy merged 1 commit into
mainfrom
fix/release-publish-checkout
Sep 27, 2026
Merged

johnnyhuy merged 1 commit into
mainfrom
fix/release-publish-checkout

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Summary

  • Add actions/checkout step to the publish job in .github/workflows/release.yml.

Why

After #20 unblocked Linux .deb packaging, the release workflow started reaching the publish job, which runs:

gh release edit "$TAG" --draft=false --latest

That command failed with:

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

gh needs a git repo in the working directory to resolve the repository context. The publish job had no actions/checkout step, so the runner's cwd wasn't a git repo.

Consequences

None. The draft release and all artefacts from the previous run are already in place — this just lets the next release actually mark itself published.

Testing

  • Workflow change only, validated by the next release run.

gh release edit fails with 'failed to run git: fatal: not a git
repository' because the publish job has no actions/checkout step.
This was masked while .deb packaging was broken; once that was fixed
the publish job started running and exposed this latent bug.
@johnnyhuy
johnnyhuy merged commit d6cc365 into main Sep 27, 2026
@johnnyhuy
johnnyhuy deleted the fix/release-publish-checkout branch September 27, 2026 10:50
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