Repository navigation
Skip PDF push on tags; tolerate no-op bumps - #238
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes found by running the 0.3.2 release through the new automation.
Draft PDF failed on the release tag
draft-pdf.ymlrebuildspaper.pdfand commits it back, gated ongithub.event_name == 'push'. A tag push satisfies that, but a tag checkout is a detached HEAD:So the
v0.3.2tag 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-devandauto-bump-devrungit commitunderset -euo pipefail, which fails when nothing is staged. That happens whenever the target version is already in place — a same-day re-run, or adevbranch created ahead of the release, which is exactly the statedevwas in today. It only passed becausesync_version.pyalso 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.