Commit f3f9853
ci: floor the version check at the published release, not main
Ports the socket-python-cli fix. Three changes to the same job:
Floor on PyPI, not main. The check required the PR version to exceed both
main and PyPI. The main term forbids the legitimate case where several PRs
ship under one unreleased version: the first bumps main and the rest ride it
without bumping again, which is what keeps them under a single changelog
header. Main is still a floor in the direction that matters -- a PR may leave
the version alone or move it forwards, never back. Forgetting to bump,
reusing a published version, and branching from a stale base all still fail.
Stop checking out main to read its version. `git checkout origin/main` left
the working tree detached on main, so the "Require uv.lock update when
pyproject changes" step below it diffed main against itself and never fired.
Reading the version out of the ref with `git show` removes the side effect
and revives that guard.
Only enforce a bump when the PR changes shipped content. This workflow is now
in its own paths filter so an edit to the check is exercised by the PR making
it, but a CI-only change ships nothing and must not be told to cut a release.
The comparison still runs and reports either way.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 57d1bc5 commit f3f9853
1 file changed
Lines changed: 57 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
| |||
60 | 76 | | |
61 | 77 | | |
62 | 78 | | |
63 | | - | |
64 | 79 | | |
65 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
66 | 86 | | |
67 | | - | |
68 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
69 | 108 | | |
70 | | - | |
71 | 109 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
76 | 120 | | |
77 | 121 | | |
78 | 122 | | |
| |||
0 commit comments