CI: Prevent auto-upgrades to ingress pre-release versions (#19899)

pull/19901/head
Steven Powell 2024-11-01 14:45:19 -07:00 committed by GitHub
parent 4e1b8762bd
commit 3efdd75d8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ func LatestControllerTag(ctx context.Context) (string, error) {
continue continue
} }
vTag := s[1] vTag := s[1]
if semver.Prerelease(vTag) != "" {
continue
}
if semver.Compare(vTag, latest) == 1 { if semver.Compare(vTag, latest) == 1 {
latest = vTag latest = vTag
} }