ci: strip the v prefix when matching release tags to changelog sections
The gate derived the version with ${tag#archied/}, which leaves "v1.7.0",
then looked for a "## [v1.7.0]" heading. Changelog sections carry no v --
tools/release.sh writes and validates "## [1.7.0]" -- so the gate could
never match and every tagged release failed before the images were built.
This is the gate's first tagged run: it landed in dd9bddc, after the
archied/v1.6.0 tag, so nothing had exercised this branch until v1.7.0.
This commit is contained in:
1 parent
6d5fdd72a3
commit
f03e927fe4
1 file changed
+4
-2
@@ -59,7 +59,9 @@ jobs:
|
||||
for tag in $(git tag --points-at HEAD); do
|
||||
case "$tag" in
|
||||
archied/v*)
|
||||
ver="${tag#archied/}"
|
||||
# Strip the "v" too: tags are archied/vX.Y.Z, changelog
|
||||
# sections are "## [X.Y.Z]" (see tools/release.sh).
|
||||
ver="${tag#archied/v}"
|
||||
echo " archied tag $tag -> looking for [$ver] in CHANGELOG.archied.md"
|
||||
grep -q "^## \\[$ver\\]" CHANGELOG.archied.md || {
|
||||
echo " FAIL: CHANGELOG.archied.md has no [$ver] section"
|
||||
@@ -67,7 +69,7 @@ jobs:
|
||||
}
|
||||
;;
|
||||
archie/v*)
|
||||
ver="${tag#archie/}"
|
||||
ver="${tag#archie/v}"
|
||||
echo " archie tag $tag -> looking for [$ver] in CHANGELOG.archie.md"
|
||||
grep -q "^## \\[$ver\\]" CHANGELOG.archie.md || {
|
||||
echo " FAIL: CHANGELOG.archie.md has no [$ver] section"
|
||||
|
||||
Reference in new issue
Block a user