Commit c88b223
committed
ci(release-please): sync uv.lock after version bump
release-please bumps `version` in `pyproject.toml` but doesn't
touch `uv.lock`. Since `uv.lock` records the project version,
`uv sync --locked` then fails on every CI job for the release PR
with:
The lockfile at uv.lock needs to be updated, but --locked was
provided. To update the lockfile, run uv lock.
Reproduced locally: bumping pyproject from 1.13.0 to 2.0.0 makes
uv sync --locked fail; uv lock alone re-sync's the descope entry
and CI passes again.
Add a sync-uv-lock job that runs after release-please-action when
a release PR was opened/updated. It checks out the PR branch using
the same GitHub App token, runs uv lock, and pushes the resulting
uv.lock change back to the PR branch (only if changed). The push
uses the App token so PR CI is re-triggered with the fixed lock.
If release-please regenerates the PR later (new commits on main),
the workflow re-runs and re-applies the lock fix on top.1 parent f539bb9 commit c88b223
1 file changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
33 | 89 | | |
34 | 90 | | |
35 | 91 | | |
| |||
0 commit comments