Repository navigation
Commit 4f008ff
authored
fix(ci): run semantic-release from the locked environment
Upgrading the action to v10.6.1 in the previous commit was necessary but not
sufficient: the release still failed with the same error, because the fault is
in GitPython rather than in PSR.
GitPython 3.1.60 removed Actor.name_email_regex, which PSR reads on every
config load, so every PSR version breaks against it. Confirmed by bisecting:
3.1.58 and 3.1.59 have the attribute, 3.1.60 does not. Upstream is tracking it
and the fix is not yet released:
python-semantic-release/python-semantic-release#1476
The published action builds its own image and resolves gitpython~=3.0 at build
time, so there is no way to constrain the version from here. Run
semantic-release from our own locked environment instead, where the lockfile
pins a working GitPython and Dependabot can bump both in step.
Adds a `release` dependency group for the purpose, included in `dev` so the
tool stays available locally without being declared twice.
Verified end to end against the merged main: the release resolves 0.8.0 and
writes released=true, version=0.8.0 and tag=v0.8.0 to GITHUB_OUTPUT, which is
the contract the publish steps depend on. Those steps are left on the published
action, since they do not load PSR config.1 parent ad12bcd commit 4f008ff
3 files changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | 42 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
32 | 52 | | |
33 | 53 | | |
34 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| 109 | + | |
106 | 110 | | |
107 | | - | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments