Commit 216fdb1
authored
ci: auto-update floating major/minor tags on release (#29)
Users pinning `tox-dev/action-pre-commit-uv@v1`, as the README
recommends, were running stale code. 🏷️ The `v1` tag on the remote
points to `v1.0.0` while `v1.0.4` is the current release, because
nothing re-points the floating tag once a new version ships. Issue #28
reported this drift.
The chosen direction keeps the `v1` and `v1.0` floating tags so existing
consumers stay unaffected, and instead automates their maintenance. A
new `Update floating tags` workflow runs whenever a stable release is
published, deriving `vX` and `vX.Y` from the released `vX.Y.Z` and
re-pointing them through the GitHub REST API. ✨ Working through the API
means no checkout and no persisted credentials, which keeps the workflow
clean under the repo's `zizmor` audit; `contents: write` is scoped to
the single job while the top level stays read-only. Prereleases are
skipped, and a `workflow_dispatch` input allows pointing the tags at an
explicit version on demand.
To repair the current drift after merge, run the workflow once with `tag
= v1.0.4`; this moves `v1` forward and creates the missing `v1.0`. A
malformed `1.0.3` tag (missing the `v` prefix, off `main`) also exists
and can be deleted separately, but is left untouched here.
Closes #28.1 parent 41a04ab commit 216fdb1
1 file changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments