Skip to content

fix(release): tell gh which repository, or the release publishes empty - #18

Merged
MotherSphere merged 1 commit into
mainfrom
fix/release-gh-repository
Sep 2, 2026
Merged

fix(release): tell gh which repository, or the release publishes empty#18
MotherSphere merged 1 commit into
mainfrom
fix/release-gh-repository

Conversation

@MotherSphere

@MotherSphere MotherSphere commented Sep 2, 2026

Copy link
Copy Markdown
Member

Three gh release calls ran without -R, in two jobs (release-please and publish) that have no actions/checkout. Without a checkout there is no git remote for gh to infer the repository from, and it dies with fatal: not a git repository.

This already happened. v0.3.0 is published right now with zero assets: the draft-hold step failed, build and publish were skipped as a consequence, and the tag went out empty. It sits at /releases/latest, so Colony's installer has nothing to fetch.

Colony hit the identical bug and paid for it with an empty v0.10.0 — its workflow now carries the warning in a comment. Grape had the same shape and had never been corrected. The other two calls would have failed the same way had the first not failed before reaching them.

The cause is upstream of this repository: the shared template every Colony program copies has the same three calls. Fixed there in Project-Colony-Resources#4, which also ports Colony's recovery path — Grape has no workflow_dispatch, so today a release that fails after its tag exists cannot be finished at all.

Getting v0.3.0 its assets

It cannot be re-run: release-please emits release_created only once per release, and Grape has no dispatch input to fall back on. The next release is what fixes it in practice — this commit is a fix:, so release-please will open a v0.3.1 PR, and with -R in place that one will actually build, upload and publish. v0.3.0 stays as an empty historical tag.

Three `gh release` calls ran without `-R`, in two jobs that have no
`actions/checkout`. Without a checkout there is no git remote to infer the
repository from, so gh dies with "fatal: not a git repository".

This is not hypothetical. It is what happened to v0.3.0: the draft-hold step
failed, `build` and `publish` were skipped as a result, and the tag was
published carrying no assets at all. It is still sitting at /releases/latest
with nothing to download, so Colony's installer has nothing to fetch.

Colony hit the identical bug and paid for it with an empty v0.10.0; its
workflow now carries the warning in a comment. Grape had the same shape and
had never been corrected, and the other two calls would have failed the same
way had the first not failed before reaching them.
@MotherSphere
MotherSphere merged commit 48f370e into main Sep 2, 2026
8 checks passed
@MotherSphere
MotherSphere deleted the fix/release-gh-repository branch September 2, 2026 10:47
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