Commit 5772b15
authored
fix: release.yml tag introspection and add floating tag automation (#26)
Fixes two related bugs in release.yml:
DTD#23: git describe --tags --abbrev=0 was used to find the latest
tag for VERSION comparison. This returns the highest reachable tag
(which can be a floating tag like v1.0 aliased to a commit), not
the highest semver patch tag. When v1.0 was an annotated tag
aliasing v1.8.2, the comparison broke entirely.
Replaces with git for-each-ref --sort=-v:refname filtered to the
semver pattern v[0-9]*.[0-9]*.[0-9]*. This returns clean semver
output regardless of what floating tags exist.
DTD#14: floating major.minor and major tags (v1.7, v1.0) had to
be force-updated manually after each release. Adds an automated
step that creates/updates vMAJOR.MINOR and vMAJOR lightweight tags
pointing at the commit of the just-pushed patch tag.
Both as lightweight tags (matches actions/checkout convention,
avoids the alias bug that DTD#4's investigation surfaced). The
floating tags are explicitly resolved through ^{commit} so the
lightweight refs point at the underlying commit, not at the
annotated patch tag's tag object.
Closes #14, #23.
Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com
Made-with: Cursor
Signed-off-by: 154358121+TMHSDigital@users.noreply.github.com1 parent 0e2fdee commit 5772b15
2 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
125 | 132 | | |
126 | 133 | | |
127 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
128 | 161 | | |
129 | 162 | | |
130 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments