[eks] Update script to accept month-year dates (#408)

Some were spotted in the latest runs, see https://github.com/endoflife-date/release-data/actions/runs/13215761680.
This commit is contained in:
Marc Wrobel
2025-02-08 17:10:53 +01:00
parent 6d91f527ec
commit c79f871bc4
2 changed files with 10 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ with releasedata.ProductData("eks") as product_data:
k8s_version_match = endoflife.DEFAULT_VERSION_PATTERN.match(k8s_version)
if k8s_version_match:
date = dates.parse_date(date_str)
date = dates.parse_date_or_month_year_date(date_str)
# K8S patch version is not kept to match versions on https://github.com/aws/eks-distro/tags.
version = f"{k8s_version_match.group('major')}.{k8s_version_match.group('minor')}-{eks_version.replace('.', '-')}"
product_data.declare_version(version, date)