Skip to content

Skip PDF push on tags; tolerate no-op bumps - #238

Merged
neuromechanist merged 2 commits into
devfrom
fix/draft-pdf-tag-push
Aug 16, 2026
Merged

neuromechanist merged 2 commits into
devfrom
fix/draft-pdf-tag-push

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Two fixes found by running the 0.3.2 release through the new automation.

Draft PDF failed on the release tag

draft-pdf.yml rebuilds paper.pdf and commits it back, gated on github.event_name == 'push'. A tag push satisfies that, but a tag checkout is a detached HEAD:

fatal: You are not currently on a branch.

So the v0.3.2 tag failed the workflow. The PDF itself built and uploaded fine; only the commit-back step failed.

The workflow's own comment already reasoned about this for pull requests — "a PR checkout is a detached merge ref, not the head branch" — and tag pushes have the same property. Now gated on github.ref_type == 'branch' as well, so tags build and upload the artifact without attempting to push.

No-op bumps could fail the release chain

sync-dev and auto-bump-dev run git commit under set -euo pipefail, which fails when nothing is staged. That happens whenever the target version is already in place — a same-day re-run, or a dev branch created ahead of the release, which is exactly the state dev was in today. It only passed because sync_version.py also rewrites the date field, so there was a diff to commit. That is luck, not design.

Both now use git diff --cached --quiet || git commit ..., so the merge still pushes and a redundant bump is not an error.

First PR through the new dev-branch flow, so merging it should also stride dev to 0.3.3.dev1.

@neuromechanist
neuromechanist merged commit 15df29d into dev Aug 16, 2026
@neuromechanist
neuromechanist deleted the fix/draft-pdf-tag-push branch August 16, 2026 01:24
@neuromechanist neuromechanist mentioned this pull request Aug 25, 2026
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